Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 112.4 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 46.64 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1161, allocations: 49.44 MB / 349.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006833/0.123, allocations: 3.399 MB / 353 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1251, allocations: 0.7987 MB / 353.8 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.1253, allocations: 8 kB / 353.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002445/0.1256, allocations: 51.59 kB / 353.8 MB, free: 468 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003259/0.126, allocations: 107.2 kB / 353.9 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.1264, allocations: 123.9 kB / 354.1 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006725/0.1271, allocations: 494 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.1275, allocations: 180.9 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003009/0.1278, allocations: 183.3 kB / 354.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.1281, allocations: 203.1 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.15e-05/0.1282, allocations: 52 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.371e-05/0.1283, allocations: 48 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1284, allocations: 91.75 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002578/0.1287, allocations: 222.9 kB / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006855/0.1294, allocations: 0.557 MB / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1294, allocations: 0 / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1294, allocations: 4 kB / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1295, allocations: 0 / 356.1 MB, free: 14.22 MB / 302.1 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.001683/0.1311, allocations: 0.6941 MB / 356.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.1312, allocations: 12.03 kB / 356.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1313, allocations: 40.47 kB / 356.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.1319, allocations: 316.6 kB / 357.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/0.132, allocations: 25.38 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.52e-05/0.132, allocations: 44.06 kB / 357.2 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1331, allocations: 386.2 kB / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1332, allocations: 4 kB / 357.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.174e-05/0.1332, allocations: 12 kB / 357.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.1333, allocations: 12 kB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009838/0.1342, allocations: 299.8 kB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.1375, allocations: 1.447 MB / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009498/0.1385, allocations: 246.7 kB / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.1389, allocations: 96.77 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.1389, allocations: 4 kB / 359.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1389, allocations: 38.55 kB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.974e-06/0.139, allocations: 0 / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.003372/0.1423, allocations: 0.7548 MB / 360.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.1424, allocations: 55.34 kB / 360.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005602/0.143, allocations: 311.3 kB / 360.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.143, allocations: 33.7 kB / 360.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.1433, allocations: 227.6 kB / 361.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.673e-05/0.1433, allocations: 59.19 kB / 361.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1435, allocations: 53.61 kB / 361.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.1437, allocations: 334.8 kB / 361.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.1441, allocations: 87.95 kB / 361.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.1445, allocations: 153.4 kB / 361.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007039/0.1452, allocations: 256.1 kB / 362 MB, free: 7.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.1452, allocations: 4 kB / 362 MB, free: 7.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001529/0.1468, allocations: 418.8 kB / 362.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.1468, allocations: 11.98 kB / 362.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.1468, allocations: 0 / 362.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006573/0.1475, allocations: 117.7 kB / 362.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.1478, allocations: 39.92 kB / 362.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00588/0.1536, allocations: 3.568 MB / 366.1 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.154, allocations: 31.69 kB / 366.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.1541, allocations: 15.92 kB / 366.2 MB, free: 3.41 MB / 302.1 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.0002463/0.1543, allocations: 157.7 kB / 366.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.334e-05/0.1544, allocations: 31.62 kB / 366.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.155e-05/0.1545, allocations: 34.3 kB / 366.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1545, allocations: 4 kB / 366.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1546, allocations: 0 / 366.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1546, allocations: 0 / 366.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.1552, allocations: 365.4 kB / 366.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1552, allocations: 0 / 366.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1553, allocations: 15.94 kB / 366.8 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005387/0.1559, allocations: 117.6 kB / 366.9 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1559, allocations: 0 / 366.9 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2014/0.3573, allocations: 3.46 MB / 370.4 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3574, allocations: 1.609 kB / 370.4 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3584, allocations: 437.2 kB / 370.8 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.3585, allocations: 106.7 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.3586, allocations: 5.422 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.3588, allocations: 24.19 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.3589, allocations: 16.16 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.359, allocations: 4.781 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.3592, allocations: 224.3 kB / 371.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3592, allocations: 1.344 kB / 371.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005547/0.3598, allocations: 104.7 kB / 371.3 MB, free: 23.94 MB / 302.1 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.000128/0.3599, allocations: 100 kB / 371.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3611, allocations: 0.5191 MB / 371.9 MB, free: 23.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3611, allocations: 0 / 371.9 MB, free: 23.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004229/0.3616, allocations: 339.3 kB / 372.2 MB, free: 23.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.3621, allocations: 58.38 kB / 372.3 MB, free: 23.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.3634, allocations: 0.7088 MB / 373 MB, free: 23.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3637, allocations: 0.777 MB / 373.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.3639, allocations: 27.44 kB / 373.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.376e-05/0.3639, allocations: 19.41 kB / 373.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3639, allocations: 0 / 373.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01018/0.3741, allocations: 3.917 MB / 377.7 MB, free: 22.15 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches