Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009324/0.0009324, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000945/0.000945, allocations: 163.4 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9555/0.9555, allocations: 177 MB / 205.2 MB, free: 5.062 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2986/0.2986, allocations: 34.86 MB / 296.6 MB, free: 456 kB / 266.7 MB " [Timeout remaining time 180] 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.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 325.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.343e-05/2.549e-05, allocations: 9.406 kB / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001186/0.001212, allocations: 0.5015 MB / 326.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.002878, allocations: 1.562 MB / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.771e-05/0.002896, allocations: 0 / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.002909, allocations: 0 / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.493e-06/0.002916, allocations: 0 / 328 MB, free: 5.117 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.003736, allocations: 267.1 kB / 328.2 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.253e-05/0.003778, allocations: 4.625 kB / 328.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.091e-05/0.003809, allocations: 0 / 328.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.892e-05/0.003838, allocations: 4 kB / 328.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.732e-05/0.003855, allocations: 0 / 328.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.106e-06/0.003863, allocations: 3.984 kB / 328.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007651/0.004628, allocations: 0.672 MB / 328.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.659e-06/0.004638, allocations: 0 / 328.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.49e-05/0.004653, allocations: 0 / 328.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000682/0.005335, allocations: 0.7602 MB / 329.7 MB, free: 3.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.005338, allocations: 0 / 329.7 MB, free: 3.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.005338, allocations: 4 kB / 329.7 MB, free: 3.406 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.005342, allocations: 0 / 329.7 MB, free: 3.406 MB / 298.7 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.0003073/0.005649, allocations: 258.2 kB / 329.9 MB, free: 3.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.005686, allocations: 16.02 kB / 329.9 MB, free: 3.109 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.172e-05/0.005708, allocations: 0.9375 kB / 329.9 MB, free: 3.109 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.718e-05/0.005755, allocations: 101.8 kB / 330 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.005764, allocations: 384 / 330 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.005772, allocations: 4.375 kB / 330 MB, free: 2.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.139e-05/0.005834, allocations: 51.97 kB / 330.1 MB, free: 2.918 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.79e-06/0.005839, allocations: 192 / 330.1 MB, free: 2.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.06e-06/0.005844, allocations: 4.312 kB / 330.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.005854, allocations: 11.94 kB / 330.1 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.005869, allocations: 33.67 kB / 330.1 MB, free: 2.863 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.775e-05/0.005927, allocations: 61.05 kB / 330.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.729e-05/0.005964, allocations: 40.28 kB / 330.2 MB, free: 2.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.00598, allocations: 38.64 kB / 330.3 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-06/0.005983, allocations: 0 / 330.3 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.006012, allocations: 60.27 kB / 330.3 MB, free: 2.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.006012, allocations: 0 / 330.3 MB, free: 2.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001059/0.006118, allocations: 118.7 kB / 330.4 MB, free: 2.473 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.00615, allocations: 81.23 kB / 330.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.985e-05/0.00618, allocations: 89.86 kB / 330.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.006188, allocations: 25.7 kB / 330.6 MB, free: 2.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.854e-05/0.006207, allocations: 88.08 kB / 330.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.61e-05/0.006223, allocations: 5.375 kB / 330.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.035e-05/0.006243, allocations: 9.719 kB / 330.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.006313, allocations: 322.8 kB / 331.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.475e-05/0.006327, allocations: 25.7 kB / 331.1 MB, free: 1.781 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.246e-05/0.00634, allocations: 25.7 kB / 331.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.063e-05/0.00638, allocations: 64.2 kB / 331.2 MB, free: 1.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.006382, allocations: 4.062 kB / 331.2 MB, free: 1.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.074e-05/0.006433, allocations: 85.09 kB / 331.3 MB, free: 1.566 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.006459, allocations: 33.7 kB / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.006464, allocations: 0 / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.447e-06/0.006473, allocations: 0 / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.106e-06/0.006477, allocations: 0 / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.384e-06/0.006479, allocations: 0 / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.217e-05/0.006491, allocations: 4 kB / 331.3 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.006498, allocations: 3.938 kB / 331.3 MB, free: 1.52 MB / 298.7 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 6.018e-05/0.006558, allocations: 135.6 kB / 331.4 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-06/0.006564, allocations: 7.984 kB / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.083e-06/0.006572, allocations: 3 kB / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.006573, allocations: 0 / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.006575, allocations: 0 / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.006577, allocations: 0 / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.91e-05/0.006626, allocations: 73.83 kB / 331.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-07/0.006627, allocations: 0 / 331.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.392e-06/0.006628, allocations: 3.938 kB / 331.5 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.31e-07/0.006629, allocations: 0 / 331.5 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-06/0.006632, allocations: 0 / 331.5 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.006633, allocations: 0 / 331.5 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.006634, allocations: 4 kB / 331.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.158e-05/0.006696, allocations: 116.5 kB / 331.6 MB, free: 1.121 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.809e-06/0.006701, allocations: 4.281 kB / 331.6 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.006712, allocations: 3.984 kB / 331.6 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.282e-06/0.006718, allocations: 4 kB / 331.6 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.925e-06/0.006726, allocations: 0 / 331.6 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.006729, allocations: 0 / 331.6 MB, free: 1.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.801e-06/0.006734, allocations: 4.859 kB / 331.6 MB, free: 1.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006734, allocations: 3.938 kB / 331.7 MB, free: 1.098 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.007052, allocations: 115.9 kB / 331.8 MB, free: 0.9805 MB / 298.7 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.0004866/0.007539, allocations: 174.4 kB / 331.9 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.529e-05/0.007624, allocations: 119.6 kB / 332.1 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.007627, allocations: 0 / 332.1 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.507e-05/0.007652, allocations: 85.97 kB / 332.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.932e-05/0.007701, allocations: 19.91 kB / 332.2 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001419/0.007843, allocations: 104.9 kB / 332.3 MB, free: 420 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.443e-05/0.007868, allocations: 51.36 kB / 332.3 MB, free: 348 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.539e-06/0.007872, allocations: 0 / 332.3 MB, free: 348 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.0079, allocations: 55.36 kB / 332.4 MB, free: 292 kB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.0079, allocations: 0 / 332.4 MB, free: 292 kB / 298.7 MB Notification: Performance of Templates: time 0.005845/0.01375, allocations: 4.058 MB / 336.4 MB, free: 12.22 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestMatrices3/TestMatrices3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1310899844393134]