Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001075/0.001075, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.54/1.54, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 51.34 kB / 300.6 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1479, allocations: 49.44 MB / 350.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.006788/0.1548, allocations: 3.183 MB / 353.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.1564, allocations: 0.7635 MB / 354 MB, free: 436 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.1566, allocations: 8 kB / 354 MB, free: 428 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.1568, allocations: 59.42 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.1571, allocations: 111 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003337/0.1574, allocations: 127.8 kB / 354.3 MB, free: 128 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.1578, allocations: 434.2 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003168/0.1582, allocations: 159.9 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.1584, allocations: 159.4 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.1587, allocations: 187.2 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.366e-05/0.1587, allocations: 44 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.007e-05/0.1588, allocations: 44 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.01e-05/0.1589, allocations: 87.69 kB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.1591, allocations: 191.1 kB / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005164/0.1596, allocations: 0.4947 MB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1596, allocations: 4 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1596, allocations: 3.938 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.1597, allocations: 0 / 356.1 MB, free: 14.34 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00127/0.1609, allocations: 0.6626 MB / 356.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.161, allocations: 8.031 kB / 356.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.1611, allocations: 40.47 kB / 356.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.1615, allocations: 303.5 kB / 357.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.1615, allocations: 25.02 kB / 357.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.93e-05/0.1616, allocations: 32.38 kB / 357.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.1622, allocations: 357.4 kB / 357.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1622, allocations: 0 / 357.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.1623, allocations: 12 kB / 357.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.1623, allocations: 11.94 kB / 357.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005761/0.1629, allocations: 274.4 kB / 357.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.1648, allocations: 1.256 MB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005871/0.1654, allocations: 295.7 kB / 359.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.1657, allocations: 96.83 kB / 359.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.1657, allocations: 3.984 kB / 359.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.1657, allocations: 30.56 kB / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.182e-06/0.1657, allocations: 0 / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002117/0.1679, allocations: 0.6471 MB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.1679, allocations: 55.41 kB / 360.2 MB, free: 10 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.1682, allocations: 295 kB / 360.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1683, allocations: 25.7 kB / 360.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1684, allocations: 219.7 kB / 360.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.1685, allocations: 55.25 kB / 360.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.1685, allocations: 45.7 kB / 360.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1687, allocations: 330.8 kB / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.1689, allocations: 83.95 kB / 361.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.1691, allocations: 166.2 kB / 361.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004249/0.1696, allocations: 246 kB / 361.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.1696, allocations: 8 kB / 361.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009436/0.1705, allocations: 401.9 kB / 362 MB, free: 8.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1706, allocations: 7.938 kB / 362 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1706, allocations: 4 kB / 362 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.171, allocations: 104.8 kB / 362.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.1712, allocations: 35.92 kB / 362.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003008/0.1742, allocations: 2.188 MB / 364.3 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.1744, allocations: 39.66 kB / 364.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1745, allocations: 19.98 kB / 364.4 MB, free: 5.516 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * 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: 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.1746, allocations: 145.8 kB / 364.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.1747, allocations: 23.72 kB / 364.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.1747, allocations: 29.91 kB / 364.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1748, allocations: 3.938 kB / 364.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1748, allocations: 4 kB / 364.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1748, allocations: 0 / 364.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.176, allocations: 0.7285 MB / 365.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.176, allocations: 0 / 365.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.1761, allocations: 15.98 kB / 365.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003492/0.1765, allocations: 101.1 kB / 365.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.1765, allocations: 7.938 kB / 365.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002837/0.1794, allocations: 2.154 MB / 367.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.1794, allocations: 3.938 kB / 367.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008663/0.1803, allocations: 411.7 kB / 368 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.309e-05/0.1804, allocations: 108.8 kB / 368.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.1804, allocations: 0 / 368.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.1806, allocations: 27.98 kB / 368.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.1807, allocations: 7.984 kB / 368.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1807, allocations: 15.92 kB / 368.2 MB, free: 1.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.1809, allocations: 210 kB / 368.4 MB, free: 1.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1809, allocations: 0 / 368.4 MB, free: 1.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004814/0.1814, allocations: 83.84 kB / 368.4 MB, free: 1.211 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 (8): * 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: 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001971/0.1816, allocations: 107.2 kB / 368.6 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007844/0.1824, allocations: 346.8 kB / 368.9 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1824, allocations: 4.25 kB / 368.9 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.1828, allocations: 226.5 kB / 369.1 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.1832, allocations: 51.98 kB / 369.2 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2084/0.3916, allocations: 0.5476 MB / 369.7 MB, free: 25.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/0.3922, allocations: 0.7708 MB / 370.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002291/0.3925, allocations: 24.72 kB / 370.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.066e-05/0.3926, allocations: 20.05 kB / 370.5 MB, free: 24.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3926, allocations: 0 / 370.5 MB, free: 24.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01137/0.404, allocations: 3.614 MB / 374.1 MB, free: 24.54 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches