Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008883/0.0008884, allocations: 92.11 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 201.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002564, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1572, allocations: 63.57 MB / 483.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006128/0.1578, allocations: 205.2 kB / 483.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000602/0.1585, allocations: 243.6 kB / 483.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.568e-06/0.1585, allocations: 0 / 483.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.1585, allocations: 0 / 483.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.348e-06/0.1585, allocations: 0 / 483.5 MB, free: 3.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.1588, allocations: 51.88 kB / 483.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.411e-05/0.1588, allocations: 4 kB / 483.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/0.1589, allocations: 0 / 483.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.1589, allocations: 7.938 kB / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.986e-05/0.1589, allocations: 0 / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.896e-06/0.1589, allocations: 0 / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1591, allocations: 59.95 kB / 483.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.1591, allocations: 3.984 kB / 483.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.1591, allocations: 25.7 kB / 483.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.1593, allocations: 51.94 kB / 483.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1593, allocations: 3.938 kB / 483.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1593, allocations: 0 / 483.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.1593, allocations: 8 kB / 483.7 MB, free: 3.512 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002848/0.1596, allocations: 357.2 kB / 484.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1596, allocations: 12.88 kB / 484.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.1597, allocations: 0.9375 kB / 484.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.518e-05/0.1597, allocations: 164.4 kB / 484.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1598, allocations: 384 / 484.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-06/0.1598, allocations: 384 / 484.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.464e-05/0.1599, allocations: 30.27 kB / 484.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1599, allocations: 4.188 kB / 484.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1599, allocations: 3.938 kB / 484.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1599, allocations: 0 / 484.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.835e-05/0.1599, allocations: 0 / 484.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.1601, allocations: 145.7 kB / 484.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.284e-05/0.1601, allocations: 30.44 kB / 484.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.624e-05/0.1601, allocations: 8.953 kB / 484.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.1602, allocations: 0 / 484.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.1602, allocations: 60.27 kB / 484.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.1602, allocations: 0 / 484.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000179/0.1604, allocations: 67.28 kB / 484.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.1605, allocations: 85.09 kB / 484.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.158e-05/0.1605, allocations: 89.86 kB / 484.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1605, allocations: 25.7 kB / 484.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.296e-05/0.1606, allocations: 80.14 kB / 484.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.1606, allocations: 4 kB / 484.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.1606, allocations: 13.84 kB / 484.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1607, allocations: 310.8 kB / 485.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.776e-06/0.1608, allocations: 0 / 485.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.1608, allocations: 0 / 485.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.713e-05/0.1608, allocations: 64.27 kB / 485.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1608, allocations: 0 / 485.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.901e-05/0.1609, allocations: 67.33 kB / 485.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.161, allocations: 33.64 kB / 485.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.161, allocations: 8.094 kB / 485.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.161, allocations: 3.938 kB / 485.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-06/0.161, allocations: 0 / 485.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.161, allocations: 0 / 485.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.161, allocations: 0 / 485.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.161, allocations: 0 / 485.4 MB, free: 1.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.705e-05/0.1611, allocations: 139.5 kB / 485.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.1611, allocations: 0 / 485.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.161e-05/0.1612, allocations: 7.062 kB / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1612, allocations: 8 kB / 485.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1612, allocations: 0 / 485.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1612, allocations: 4 kB / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.1613, allocations: 153.7 kB / 485.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1613, allocations: 0 / 485.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1613, allocations: 0 / 485.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1613, allocations: 0 / 485.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.1613, allocations: 3.938 kB / 485.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1613, allocations: 4 kB / 485.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1613, allocations: 0 / 485.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.205e-05/0.1614, allocations: 98.75 kB / 485.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.1615, allocations: 81.11 kB / 485.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1615, allocations: 3.938 kB / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.086e-06/0.1615, allocations: 0 / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-06/0.1615, allocations: 3.938 kB / 485.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.1615, allocations: 0 / 485.8 MB, free: 1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.351e-05/0.1616, allocations: 75.28 kB / 485.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1616, allocations: 4.031 kB / 485.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.1618, allocations: 27.98 kB / 486 MB, free: 0.8945 MB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005178/0.1623, allocations: 277.1 kB / 486.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.233e-05/0.1624, allocations: 55.41 kB / 486.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1624, allocations: 4 kB / 486.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.488e-05/0.1625, allocations: 55.41 kB / 486.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.1626, allocations: 10.28 kB / 486.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001775/0.1628, allocations: 78.78 kB / 486.4 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.163, allocations: 0.6731 MB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.14e-06/0.163, allocations: 0 / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.168e-06/0.1631, allocations: 7.438 kB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1631, allocations: 0 / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Templates: time 0.003088/0.1662, allocations: 0.7804 MB / 487.9 MB, free: 14.93 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches