Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState") translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008413/0.0008413, allocations: 93.89 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009124/0.0009124, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.7 MB / 246.4 MB, free: 9.715 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2214/0.2214, allocations: 46.19 MB / 344.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003366, allocations: 8.219 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1526, allocations: 63.57 MB / 482.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002216/0.1549, allocations: 1.269 MB / 483.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003299/0.1553, allocations: 67.75 kB / 483.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.673e-05/0.1554, allocations: 7.938 kB / 483.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.1555, allocations: 3.938 kB / 483.7 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.163e-05/0.1556, allocations: 7.984 kB / 483.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.1558, allocations: 11.98 kB / 483.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.156, allocations: 31.86 kB / 483.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1562, allocations: 15.92 kB / 483.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.995e-05/0.1562, allocations: 4 kB / 483.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.656e-05/0.1563, allocations: 19.86 kB / 483.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.1564, allocations: 0 / 483.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.678e-05/0.1564, allocations: 4 kB / 483.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.613e-05/0.1564, allocations: 4 kB / 483.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.245e-05/0.1565, allocations: 29.7 kB / 483.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.1566, allocations: 23.95 kB / 483.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1566, allocations: 0 / 483.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1566, allocations: 0 / 483.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.1566, allocations: 0 / 483.9 MB, free: 3.008 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000667/0.1573, allocations: 347.5 kB / 484.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.986e-05/0.1574, allocations: 16.02 kB / 484.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.448e-05/0.1574, allocations: 7.906 kB / 484.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1578, allocations: 179 kB / 484.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1578, allocations: 0 / 484.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.754e-05/0.1578, allocations: 4 kB / 484.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1581, allocations: 76.19 kB / 484.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1581, allocations: 0 / 484.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1582, allocations: 4 kB / 484.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1582, allocations: 0 / 484.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.1583, allocations: 27.98 kB / 484.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007478/0.159, allocations: 457.1 kB / 485 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.1592, allocations: 42.56 kB / 485 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.615e-05/0.1593, allocations: 20.94 kB / 485.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.1594, allocations: 0 / 485.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1594, allocations: 34.56 kB / 485.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.1594, allocations: 3.938 kB / 485.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005812/0.16, allocations: 109.5 kB / 485.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.1601, allocations: 51.41 kB / 485.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.1602, allocations: 129.9 kB / 485.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.1602, allocations: 25.7 kB / 485.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.1603, allocations: 92.42 kB / 485.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.1604, allocations: 23.72 kB / 485.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.1604, allocations: 0 / 485.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1605, allocations: 314.8 kB / 485.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.647e-05/0.1606, allocations: 19.92 kB / 485.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.258e-05/0.1607, allocations: 43.42 kB / 485.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.578e-05/0.1607, allocations: 24 kB / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.1608, allocations: 0 / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001982/0.161, allocations: 89.48 kB / 486 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.161, allocations: 11.98 kB / 486 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.161, allocations: 0 / 486 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.161, allocations: 0 / 486 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.946e-05/0.1611, allocations: 12 kB / 486 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1611, allocations: 0 / 486 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.703e-05/0.1612, allocations: 15.94 kB / 486 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.1612, allocations: 4.156 kB / 486 MB, free: 0.6172 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.1613, allocations: 117.9 kB / 486.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.1613, allocations: 0 / 486.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.901e-05/0.1614, allocations: 7.906 kB / 486.2 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1614, allocations: 0 / 486.2 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1614, allocations: 0 / 486.2 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1614, allocations: 0 / 486.2 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.1616, allocations: 169.6 kB / 486.3 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1616, allocations: 4 kB / 486.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.207e-05/0.1617, allocations: 23.92 kB / 486.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.1617, allocations: 0 / 486.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1618, allocations: 4 kB / 486.4 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1618, allocations: 0 / 486.4 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1618, allocations: 3.984 kB / 486.4 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003494/0.1621, allocations: 187.8 kB / 486.5 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/0.1622, allocations: 81.02 kB / 486.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.872e-05/0.1622, allocations: 4.062 kB / 486.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.283e-05/0.1623, allocations: 4.078 kB / 486.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.722e-05/0.1623, allocations: 11.97 kB / 486.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.1623, allocations: 7.938 kB / 486.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.779e-05/0.1624, allocations: 87.22 kB / 486.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1624, allocations: 0 / 486.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.1627, allocations: 8.281 kB / 486.7 MB, free: 15.81 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001757/0.1629, allocations: 91.78 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.1631, allocations: 47.91 kB / 486.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.1631, allocations: 7.938 kB / 486.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.567e-05/0.1632, allocations: 19.98 kB / 486.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1635, allocations: 7.953 kB / 486.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.1641, allocations: 167 kB / 487.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.1645, allocations: 0.6873 MB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.938e-05/0.1646, allocations: 4.188 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/0.1646, allocations: 11.44 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1646, allocations: 4 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of Templates: time 0.003458/0.1681, allocations: 403.9 kB / 488.2 MB, free: 14.32 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches