Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 78.66 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 168.8 kB / 24.82 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9924/0.9924, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2453/0.2453, allocations: 32.81 MB / 294.6 MB, free: 1.23 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 376.4 MB, free: 4.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.335e-05, allocations: 9.062 kB / 376.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001085/0.001108, allocations: 0.5085 MB / 377 MB, free: 3.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.002598, allocations: 1.592 MB / 378.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.127e-06/0.002607, allocations: 0 / 378.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 6.412e-06/0.002614, allocations: 0 / 378.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.465e-06/0.002616, allocations: 0 / 378.6 MB, free: 2.297 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.003189, allocations: 295.1 kB / 378.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.233e-05/0.003212, allocations: 3.984 kB / 378.8 MB, free: 2.004 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 1.971e-05/0.003231, allocations: 8 kB / 378.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.279e-05/0.003244, allocations: 0 / 378.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.516e-06/0.003253, allocations: 0 / 378.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-06/0.003257, allocations: 0 / 378.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004941/0.003751, allocations: 427 kB / 379.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.248e-06/0.00376, allocations: 4 kB / 379.3 MB, free: 1.574 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.357e-05/0.003774, allocations: 4 kB / 379.3 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.004122, allocations: 319.1 kB / 379.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.004125, allocations: 0 / 379.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004126, allocations: 0 / 379.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.00413, allocations: 0 / 379.6 MB, free: 1.258 MB / 346.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.0002641/0.004394, allocations: 397.7 kB / 380 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.00443, allocations: 8.031 kB / 380 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.004456, allocations: 4.938 kB / 380 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.467e-05/0.004511, allocations: 108.6 kB / 380.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-06/0.00452, allocations: 384 / 380.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.401e-06/0.004525, allocations: 384 / 380.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.987e-05/0.004585, allocations: 67.95 kB / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.004591, allocations: 192 / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.98e-06/0.004596, allocations: 384 / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.004602, allocations: 3.938 kB / 380.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.687e-05/0.004619, allocations: 33.69 kB / 380.2 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.887e-05/0.004688, allocations: 93.2 kB / 380.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.269e-05/0.004731, allocations: 52.8 kB / 380.3 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.438e-05/0.004745, allocations: 33.39 kB / 380.4 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-06/0.004748, allocations: 0 / 380.4 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.004782, allocations: 71.14 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.82e-07/0.004783, allocations: 0 / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001269/0.00491, allocations: 118.8 kB / 380.6 MB, free: 108 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.004938, allocations: 77.11 kB / 380.6 MB, free: 12 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.116e-05/0.004989, allocations: 146.2 kB / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.615e-06/0.004997, allocations: 25.7 kB / 380.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/0.005023, allocations: 134.8 kB / 380.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.005041, allocations: 4.281 kB / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.005061, allocations: 15.38 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.005165, allocations: 0.4883 MB / 381.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.005178, allocations: 25.83 kB / 381.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.859e-06/0.005188, allocations: 29.7 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.59e-05/0.005223, allocations: 63.09 kB / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.005225, allocations: 0 / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.668e-05/0.005272, allocations: 101 kB / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.005295, allocations: 29.7 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.0053, allocations: 4 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.005311, allocations: 4 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.005312, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-06/0.005315, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.036e-05/0.005325, allocations: 8.031 kB / 381.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.005331, allocations: 3.984 kB / 381.7 MB, free: 14.84 MB / 362.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.616e-05/0.005398, allocations: 186.3 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-06/0.005402, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.004e-05/0.005412, allocations: 3 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.005413, allocations: 4 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.005415, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.005418, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.746e-05/0.005465, allocations: 93.2 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.005466, allocations: 0 / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-06/0.005468, allocations: 7.984 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.005469, allocations: 0 / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-06/0.005473, allocations: 4 kB / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.005473, allocations: 0 / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.005474, allocations: 0 / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.659e-05/0.00554, allocations: 135.7 kB / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-06/0.005543, allocations: 0 / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-06/0.005553, allocations: 4 kB / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-06/0.005557, allocations: 0 / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-06/0.005565, allocations: 0 / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-06/0.005566, allocations: 0 / 382.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.514e-05/0.005591, allocations: 123.2 kB / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005591, allocations: 3.938 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002184/0.00581, allocations: 67.8 kB / 382.3 MB, free: 14.15 MB / 362.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.0003284/0.006138, allocations: 191.8 kB / 382.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.006238, allocations: 118.5 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.00624, allocations: 4 kB / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.165e-05/0.006272, allocations: 88.73 kB / 382.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.026e-05/0.006362, allocations: 7.938 kB / 382.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001589/0.006521, allocations: 117.8 kB / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.689e-05/0.006548, allocations: 55.36 kB / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.69e-06/0.006553, allocations: 3.984 kB / 382.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.027e-05/0.006594, allocations: 70.2 kB / 383 MB, free: 13.39 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.006594, allocations: 0 / 383 MB, free: 13.39 MB / 362.7 MB Notification: Performance of Templates: time 0.002796/0.00939, allocations: 1.541 MB / 384.5 MB, free: 11.86 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.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: 2.852416798006743]