Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008231/0.0008231, allocations: 183 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 225.7 MB / 243.2 MB, free: 10.24 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008116/0.0008115, allocations: 90.03 kB / 294.3 MB, free: 9.754 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002689, allocations: 11.94 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.241, allocations: 50.4 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002463/0.2435, allocations: 2.887 MB / 407.5 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.2445, allocations: 0.77 MB / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.2446, allocations: 8 kB / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.2448, allocations: 53.08 kB / 408.3 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.245, allocations: 112.1 kB / 408.4 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.2452, allocations: 123.9 kB / 408.5 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.2455, allocations: 470 kB / 409 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2458, allocations: 145.4 kB / 409.1 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.2459, allocations: 159.3 kB / 409.3 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.2461, allocations: 175.1 kB / 409.5 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.2461, allocations: 20 kB / 409.5 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.813e-05/0.2462, allocations: 24 kB / 409.5 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.2463, allocations: 59.7 kB / 409.6 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.2464, allocations: 212.7 kB / 409.8 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.2467, allocations: 0.523 MB / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2467, allocations: 0 / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2467, allocations: 0 / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2467, allocations: 4 kB / 410.3 MB, free: 25.64 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008792/0.2476, allocations: 0.6473 MB / 410.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2477, allocations: 8.031 kB / 410.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.25e-05/0.2477, allocations: 40.47 kB / 411 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.248, allocations: 316.6 kB / 411.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.2481, allocations: 29.38 kB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.2481, allocations: 40.12 kB / 411.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.2487, allocations: 390.2 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2487, allocations: 0 / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.2488, allocations: 16 kB / 411.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.2488, allocations: 8 kB / 411.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005629/0.2493, allocations: 311.8 kB / 412.1 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.2511, allocations: 1.467 MB / 413.5 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005587/0.2517, allocations: 238.8 kB / 413.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.2519, allocations: 104.8 kB / 413.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.2519, allocations: 4 kB / 413.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.2519, allocations: 34.56 kB / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.764e-06/0.2519, allocations: 0 / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001972/0.2539, allocations: 0.8176 MB / 414.7 MB, free: 20.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.2539, allocations: 51.41 kB / 414.8 MB, free: 20.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.2542, allocations: 311.3 kB / 415.1 MB, free: 20.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.2543, allocations: 25.7 kB / 415.1 MB, free: 20.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2544, allocations: 235.6 kB / 415.3 MB, free: 20.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.2544, allocations: 55.19 kB / 415.4 MB, free: 20.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.2544, allocations: 12 kB / 415.4 MB, free: 20.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.2545, allocations: 330.8 kB / 415.7 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.2547, allocations: 87.95 kB / 415.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.2549, allocations: 168.3 kB / 416 MB, free: 19.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.2553, allocations: 255.5 kB / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2553, allocations: 0 / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008322/0.2561, allocations: 439.9 kB / 416.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2562, allocations: 8.062 kB / 416.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2562, allocations: 8 kB / 416.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004243/0.2566, allocations: 125.5 kB / 416.8 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.2568, allocations: 39.98 kB / 416.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002952/0.2597, allocations: 3.314 MB / 420.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.26, allocations: 43.58 kB / 420.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.26, allocations: 15.94 kB / 420.2 MB, free: 15.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.2602, allocations: 149.8 kB / 420.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.2602, allocations: 31.78 kB / 420.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.2603, allocations: 30.3 kB / 420.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.2603, allocations: 0 / 420.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2603, allocations: 0 / 420.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2603, allocations: 3.938 kB / 420.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.2606, allocations: 373.2 kB / 420.8 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2606, allocations: 3.938 kB / 420.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.343e-05/0.2607, allocations: 12 kB / 420.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003447/0.2611, allocations: 117.6 kB / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2611, allocations: 7.984 kB / 420.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.2635, allocations: 3.201 MB / 424.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2635, allocations: 0 / 424.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007345/0.2642, allocations: 456.6 kB / 424.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.2643, allocations: 108.8 kB / 424.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.2643, allocations: 0 / 424.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.2645, allocations: 31.98 kB / 424.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.2646, allocations: 15.97 kB / 424.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.2646, allocations: 8 kB / 424.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001688/0.2648, allocations: 217.9 kB / 424.9 MB, free: 9.961 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2648, allocations: 0 / 424.9 MB, free: 9.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004626/0.2653, allocations: 103.7 kB / 425 MB, free: 9.859 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001271/0.2654, allocations: 111.2 kB / 425.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009348/0.2663, allocations: 0.5285 MB / 425.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2664, allocations: 0 / 425.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.2667, allocations: 341.8 kB / 426 MB, free: 8.828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.2671, allocations: 55.2 kB / 426.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009081/0.268, allocations: 0.7253 MB / 426.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.2682, allocations: 0.7794 MB / 427.6 MB, free: 7.219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.2683, allocations: 30.97 kB / 427.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/0.2684, allocations: 19.44 kB / 427.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2684, allocations: 0 / 427.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of Templates: time 0.006294/0.2747, allocations: 3.668 MB / 431.3 MB, free: 3.52 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches