Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008882/0.0008882, allocations: 83.55 kB / 16.31 MB, free: 6.449 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.0009674/0.0009671, allocations: 184.1 kB / 17.21 MB, free: 6.316 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.527/1.527, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003048, allocations: 9 kB / 300.8 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1362, allocations: 50.42 MB / 351.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003348/0.1396, allocations: 2.498 MB / 353.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1409, allocations: 0.686 MB / 354.4 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.1411, allocations: 8 kB / 354.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.1413, allocations: 35.69 kB / 354.5 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.1415, allocations: 83.36 kB / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.1418, allocations: 79.86 kB / 354.6 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.1422, allocations: 370.4 kB / 355 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.1425, allocations: 93.8 kB / 355.1 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.1427, allocations: 127.5 kB / 355.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.1429, allocations: 139.4 kB / 355.4 MB, free: 7.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.944e-05/0.143, allocations: 20 kB / 355.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.789e-05/0.143, allocations: 16 kB / 355.4 MB, free: 7.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-05/0.1431, allocations: 55.7 kB / 355.4 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.1432, allocations: 77.58 kB / 355.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.1436, allocations: 347 kB / 355.9 MB, free: 7.031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.1436, allocations: 0 / 355.9 MB, free: 7.031 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1436, allocations: 0 / 355.9 MB, free: 7.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.1437, allocations: 0 / 355.9 MB, free: 7.031 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001462/0.1451, allocations: 0.652 MB / 356.5 MB, free: 6.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.061e-05/0.1452, allocations: 12.03 kB / 356.5 MB, free: 6.312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.636e-05/0.1453, allocations: 35.62 kB / 356.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.1458, allocations: 286.4 kB / 356.8 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.1458, allocations: 16.56 kB / 356.9 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.857e-05/0.1459, allocations: 24 kB / 356.9 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.1466, allocations: 339.6 kB / 357.2 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1467, allocations: 0 / 357.2 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.1467, allocations: 15.95 kB / 357.2 MB, free: 5.562 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1467, allocations: 4 kB / 357.2 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007986/0.1475, allocations: 318 kB / 357.5 MB, free: 5.246 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1495, allocations: 1.189 MB / 358.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000832/0.1504, allocations: 286.5 kB / 359 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/0.1507, allocations: 136.7 kB / 359.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.1507, allocations: 0 / 359.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005438/0.1513, allocations: 197.2 kB / 359.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.1513, allocations: 0 / 359.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002279/0.1536, allocations: 0.7332 MB / 360.1 MB, free: 2.578 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.972e-05/0.1537, allocations: 110.8 kB / 360.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.1541, allocations: 274.7 kB / 360.4 MB, free: 2.168 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.1541, allocations: 29.7 kB / 360.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/0.1543, allocations: 207.5 kB / 360.7 MB, free: 1.926 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.1544, allocations: 39.45 kB / 360.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.415e-05/0.1544, allocations: 4 kB / 360.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1546, allocations: 334.8 kB / 361 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.1551, allocations: 120.4 kB / 361.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/0.1555, allocations: 216.8 kB / 361.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.1559, allocations: 167.8 kB / 361.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1559, allocations: 0 / 361.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001144/0.1571, allocations: 0.4996 MB / 362 MB, free: 500 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.1571, allocations: 33.7 kB / 362.1 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1571, allocations: 4 kB / 362.1 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003869/0.1575, allocations: 92.86 kB / 362.2 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.1577, allocations: 51.91 kB / 362.2 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.1603, allocations: 1.83 MB / 364 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.1606, allocations: 67.7 kB / 364.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.1606, allocations: 8 kB / 364.1 MB, free: 14.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.1608, allocations: 149.7 kB / 364.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.1608, allocations: 24.03 kB / 364.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.1609, allocations: 29.83 kB / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1609, allocations: 3.938 kB / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.1609, allocations: 0 / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1609, allocations: 128 / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003043/0.1612, allocations: 333.2 kB / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1612, allocations: 0 / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.1613, allocations: 27.92 kB / 364.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002516/0.1616, allocations: 92.8 kB / 364.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1616, allocations: 0 / 364.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002143/0.1638, allocations: 1.718 MB / 366.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1638, allocations: 0 / 366.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.1648, allocations: 405.5 kB / 366.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-05/0.1649, allocations: 108.8 kB / 367 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.1649, allocations: 192 / 367 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.1651, allocations: 55.91 kB / 367 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/0.1652, allocations: 19.97 kB / 367.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.1652, allocations: 7.938 kB / 367.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002033/0.1654, allocations: 202 kB / 367.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1655, allocations: 0 / 367.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003849/0.1658, allocations: 75.84 kB / 367.3 MB, free: 10.8 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001883/0.166, allocations: 107.2 kB / 367.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009737/0.167, allocations: 453 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.167, allocations: 4 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004399/0.1675, allocations: 258.5 kB / 368.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.1678, allocations: 44.53 kB / 368.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.1688, allocations: 0.5689 MB / 368.8 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.1692, allocations: 0.756 MB / 369.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.1693, allocations: 22.3 kB / 369.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.1694, allocations: 23.44 kB / 369.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1694, allocations: 0 / 369.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of Templates: time 0.007497/0.1769, allocations: 3.656 MB / 373.2 MB, free: 4.859 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches