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.001126/0.001126, allocations: 112.6 kB / 17.7 MB, free: 5.41 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.001021/0.001021, allocations: 190.9 kB / 18.63 MB, free: 4.477 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.613/1.613, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009794/0.0009796, allocations: 51.27 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1443, allocations: 49.44 MB / 351.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004825/0.1492, allocations: 2.917 MB / 354.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1507, allocations: 0.7247 MB / 355.2 MB, free: 16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.1508, allocations: 4 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.1511, allocations: 55.41 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.1513, allocations: 103.2 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.1517, allocations: 123.8 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.1521, allocations: 422.4 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.1524, allocations: 115.3 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.1526, allocations: 155.4 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.1528, allocations: 179.2 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.953e-05/0.1529, allocations: 40 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.1529, allocations: 40 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.048e-05/0.153, allocations: 83.69 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.1532, allocations: 175.2 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.1538, allocations: 446.5 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1538, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1538, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1538, allocations: 4 kB / 357.1 MB, free: 14.09 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001364/0.1552, allocations: 0.6769 MB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.024e-05/0.1553, allocations: 11.89 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1554, allocations: 36.56 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1559, allocations: 307.5 kB / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1559, allocations: 20.94 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.1559, allocations: 28.36 kB / 358.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006871/0.1566, allocations: 328 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1567, allocations: 3.938 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.1567, allocations: 8 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1567, allocations: 8 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007442/0.1575, allocations: 290 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.1593, allocations: 1.146 MB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000808/0.1601, allocations: 246.6 kB / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.1604, allocations: 112.8 kB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.1605, allocations: 0 / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.1609, allocations: 188.7 kB / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.1609, allocations: 0 / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002397/0.1633, allocations: 0.659 MB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.89e-05/0.1634, allocations: 106.8 kB / 361.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.1638, allocations: 286.5 kB / 361.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.1639, allocations: 33.7 kB / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.164, allocations: 191.7 kB / 361.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.1641, allocations: 43.45 kB / 361.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1642, allocations: 49.84 kB / 361.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.1644, allocations: 330.8 kB / 362.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.1648, allocations: 112.6 kB / 362.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/0.1652, allocations: 206 kB / 362.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007495/0.166, allocations: 303.7 kB / 362.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.166, allocations: 4 kB / 362.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001188/0.1672, allocations: 475.5 kB / 363.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.214e-05/0.1673, allocations: 37.7 kB / 363.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1673, allocations: 4 kB / 363.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000409/0.1677, allocations: 84.86 kB / 363.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1679, allocations: 43.91 kB / 363.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.1708, allocations: 1.998 MB / 365.4 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.1712, allocations: 55.7 kB / 365.4 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.1713, allocations: 12 kB / 365.4 MB, free: 5.168 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 (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 (23): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.1715, allocations: 165.2 kB / 365.6 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.705e-05/0.1715, allocations: 23.72 kB / 365.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.031e-05/0.1716, allocations: 25.83 kB / 365.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.1716, allocations: 0 / 365.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1716, allocations: 0 / 365.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1716, allocations: 3.984 kB / 365.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003245/0.1719, allocations: 321.4 kB / 366 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1719, allocations: 0 / 366 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.1721, allocations: 23.97 kB / 366 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002793/0.1724, allocations: 88.73 kB / 366.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.1724, allocations: 0 / 366.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.1747, allocations: 1.809 MB / 367.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1748, allocations: 4 kB / 367.9 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1758, allocations: 376.9 kB / 368.2 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/0.1759, allocations: 100.8 kB / 368.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.1759, allocations: 8 kB / 368.4 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.1762, allocations: 27.97 kB / 368.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.053e-05/0.1763, allocations: 27.97 kB / 368.4 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.1763, allocations: 0 / 368.4 MB, free: 1.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000224/0.1765, allocations: 205.9 kB / 368.6 MB, free: 1.754 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1765, allocations: 0 / 368.6 MB, free: 1.754 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1769, allocations: 83.75 kB / 368.7 MB, free: 1.672 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 (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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002257/0.1772, allocations: 111.2 kB / 368.8 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.1782, allocations: 425.9 kB / 369.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1782, allocations: 0 / 369.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.1787, allocations: 242.5 kB / 369.5 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1791, allocations: 59.97 kB / 369.5 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.1802, allocations: 484.2 kB / 370 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2219/0.4021, allocations: 0.7526 MB / 370.7 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.4025, allocations: 25.64 kB / 370.8 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.45e-05/0.4026, allocations: 19.78 kB / 370.8 MB, free: 24.99 MB / 302.1 MB Notification: Performance of SimCode: time 1.893e-06/0.4026, allocations: 3.25 kB / 370.8 MB, free: 24.99 MB / 302.1 MB Notification: Performance of Templates: time 0.01262/0.4152, allocations: 4.136 MB / 374.9 MB, free: 24.92 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/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