Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 106.2 kB / 18.25 MB, free: 4.773 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.002217/0.002218, allocations: 195.3 kB / 19.19 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.1 MB / 225.1 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 48.53 kB / 281.3 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 46.63 MB / 328 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004818/0.1166, allocations: 2.716 MB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1182, allocations: 0.7059 MB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.1184, allocations: 4 kB / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.1187, allocations: 43.58 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.1189, allocations: 91.25 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.1193, allocations: 95.8 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000511/0.1198, allocations: 358.5 kB / 332 MB, free: 444 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.1201, allocations: 80.7 kB / 332 MB, free: 368 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.1203, allocations: 131.4 kB / 332.2 MB, free: 236 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.1205, allocations: 147.4 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.569e-05/0.1206, allocations: 32 kB / 332.3 MB, free: 56 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.1207, allocations: 28 kB / 332.4 MB, free: 28 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1208, allocations: 71.69 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.121, allocations: 143.2 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.1214, allocations: 323.2 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1214, allocations: 0 / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.1214, allocations: 0 / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1214, allocations: 3.938 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001438/0.1228, allocations: 0.6379 MB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.1229, allocations: 8.031 kB / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.674e-05/0.123, allocations: 28.66 kB / 333.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.1234, allocations: 283.2 kB / 333.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.1235, allocations: 20.81 kB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.79e-05/0.1235, allocations: 16.38 kB / 333.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006799/0.1242, allocations: 251.5 kB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1242, allocations: 0 / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.1242, allocations: 8 kB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1243, allocations: 4 kB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008036/0.1251, allocations: 253.6 kB / 334.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.1269, allocations: 0.8736 MB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007857/0.1277, allocations: 226.5 kB / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.128, allocations: 96.78 kB / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.1281, allocations: 8 kB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005621/0.1287, allocations: 173.7 kB / 335.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.1287, allocations: 0 / 335.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.002082/0.1308, allocations: 0.5849 MB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.1309, allocations: 102.8 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.1312, allocations: 264.8 kB / 336.7 MB, free: 11.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.1312, allocations: 29.7 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1314, allocations: 171.9 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.1314, allocations: 55.28 kB / 336.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.1316, allocations: 45.7 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.1318, allocations: 326.8 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.1321, allocations: 96.78 kB / 337.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.1325, allocations: 159.5 kB / 337.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.1331, allocations: 254.6 kB / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1331, allocations: 0 / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001146/0.1343, allocations: 423.5 kB / 338.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.948e-05/0.1343, allocations: 33.7 kB / 338.3 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1343, allocations: 0 / 338.3 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005147/0.1349, allocations: 116.8 kB / 338.4 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.1351, allocations: 35.91 kB / 338.4 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002703/0.1378, allocations: 1.892 MB / 340.3 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.1381, allocations: 39.81 kB / 340.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.1382, allocations: 16.06 kB / 340.4 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003828/0.1386, allocations: 176.1 kB / 340.5 MB, free: 7.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004006/0.139, allocations: 143.7 kB / 340.7 MB, free: 7.172 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005679/0.1396, allocations: 234.8 kB / 340.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.904e-06/0.1396, allocations: 0 / 340.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0008234/0.1404, allocations: 335.6 kB / 341.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.1405, allocations: 33.7 kB / 341.3 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1405, allocations: 3.984 kB / 341.3 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000135/0.1406, allocations: 40.84 kB / 341.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.1408, allocations: 35.91 kB / 341.3 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.1424, allocations: 1.725 MB / 343.1 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.1428, allocations: 39.81 kB / 343.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1428, allocations: 8 kB / 343.1 MB, free: 4.543 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.143, allocations: 204.1 kB / 343.3 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.1431, allocations: 19.72 kB / 343.3 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.1431, allocations: 29.91 kB / 343.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1432, allocations: 3.984 kB / 343.4 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1432, allocations: 0 / 343.4 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1432, allocations: 0 / 343.4 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000498/0.1437, allocations: 301.3 kB / 343.7 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1437, allocations: 0 / 343.7 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.1438, allocations: 23.97 kB / 343.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/0.1441, allocations: 68.75 kB / 343.7 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.1442, allocations: 4 kB / 343.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.1463, allocations: 1.711 MB / 345.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1463, allocations: 0 / 345.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009311/0.1473, allocations: 326 kB / 345.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.1475, allocations: 96.84 kB / 345.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.727e-05/0.1475, allocations: 8 kB / 345.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.1478, allocations: 31.97 kB / 345.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.1479, allocations: 23.91 kB / 345.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.1479, allocations: 4 kB / 345.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002092/0.1481, allocations: 188.5 kB / 346.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1481, allocations: 0 / 346.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000622/0.1488, allocations: 123.7 kB / 346.2 MB, free: 1.176 MB / 286.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001665/0.1489, allocations: 111.1 kB / 346.3 MB, free: 1.055 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.1505, allocations: 0.6994 MB / 347 MB, free: 312 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.1505, allocations: 0 / 347 MB, free: 312 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005259/0.151, allocations: 234.6 kB / 347.3 MB, free: 64 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.1514, allocations: 44.78 kB / 347.3 MB, free: 20 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1526, allocations: 477.4 kB / 347.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.153, allocations: 0.7522 MB / 348.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.942e-05/0.1531, allocations: 19.44 kB / 348.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1531, allocations: 0 / 348.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Templates: time 0.008161/0.1613, allocations: 4.178 MB / 352.7 MB, free: 10.53 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches