Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001676/0.001676, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001929/0.001929, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.598/1.598, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.245/0.245, allocations: 46.91 MB / 357.1 MB, free: 10.36 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 59.91 kB / 0.4914 GB, free: 7.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1445, allocations: 66 MB / 0.5558 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001615/0.1461, allocations: 490.7 kB / 0.5563 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.1484, allocations: 1.618 MB / 0.5579 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.373e-05/0.1484, allocations: 4 kB / 0.5579 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.1484, allocations: 0 / 0.5579 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.1484, allocations: 0 / 0.5579 GB, free: 3.293 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0008287/0.1492, allocations: 271.3 kB / 0.5582 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.551e-05/0.1493, allocations: 4 kB / 0.5582 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.1493, allocations: 0 / 0.5582 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.643e-05/0.1493, allocations: 3.984 kB / 0.5582 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.884e-05/0.1494, allocations: 0 / 0.5582 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.819e-06/0.1494, allocations: 0 / 0.5582 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007481/0.1501, allocations: 0.5379 MB / 0.5587 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.832e-06/0.1501, allocations: 0 / 0.5587 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.977e-05/0.1501, allocations: 3.938 kB / 0.5587 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.1506, allocations: 319.2 kB / 0.559 GB, free: 2.164 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1506, allocations: 3.938 kB / 0.559 GB, free: 2.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1506, allocations: 0 / 0.559 GB, free: 2.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1506, allocations: 0 / 0.559 GB, free: 2.16 MB / 414.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.0004601/0.1511, allocations: 372.8 kB / 0.5594 GB, free: 1.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1511, allocations: 12.03 kB / 0.5594 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.1511, allocations: 4.922 kB / 0.5594 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.1512, allocations: 160.4 kB / 0.5595 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.1513, allocations: 4.375 kB / 0.5595 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.106e-06/0.1513, allocations: 4.375 kB / 0.5595 GB, free: 1.523 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.911e-05/0.1514, allocations: 30.02 kB / 0.5596 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.1514, allocations: 0 / 0.5596 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.1514, allocations: 0 / 0.5596 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.1514, allocations: 4 kB / 0.5596 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.1514, allocations: 4 kB / 0.5596 GB, free: 1.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.1516, allocations: 149.7 kB / 0.5597 GB, free: 1.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.064e-05/0.1516, allocations: 26.55 kB / 0.5597 GB, free: 1.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.78e-05/0.1516, allocations: 8.859 kB / 0.5597 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.1516, allocations: 0 / 0.5597 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.1517, allocations: 64.14 kB / 0.5598 GB, free: 1.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1517, allocations: 0 / 0.5598 GB, free: 1.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001806/0.1519, allocations: 75.33 kB / 0.5599 GB, free: 1.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.1519, allocations: 81.11 kB / 0.56 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.465e-05/0.152, allocations: 93.81 kB / 0.56 GB, free: 0.875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.152, allocations: 25.7 kB / 0.5601 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.975e-05/0.1521, allocations: 84.14 kB / 0.5601 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.1521, allocations: 0 / 0.5601 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.1521, allocations: 13.72 kB / 0.5602 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1522, allocations: 311 kB / 0.5605 GB, free: 436 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.037e-06/0.1523, allocations: 4 kB / 0.5605 GB, free: 432 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.061e-05/0.1523, allocations: 3.984 kB / 0.5605 GB, free: 428 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.649e-05/0.1523, allocations: 60.27 kB / 0.5605 GB, free: 352 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1523, allocations: 0 / 0.5605 GB, free: 352 kB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.434e-05/0.1524, allocations: 67.34 kB / 0.5606 GB, free: 272 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.1524, allocations: 33.64 kB / 0.5606 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1525, allocations: 3.984 kB / 0.5606 GB, free: 228 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1525, allocations: 0 / 0.5606 GB, free: 228 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1525, allocations: 8.094 kB / 0.5606 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1525, allocations: 0 / 0.5606 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.1525, allocations: 0 / 0.5606 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.1525, allocations: 0 / 0.5606 GB, free: 220 kB / 414.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 0.0001038/0.1526, allocations: 135.5 kB / 0.5608 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1526, allocations: 3.938 kB / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.733e-06/0.1526, allocations: 3.125 kB / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1526, allocations: 3.984 kB / 0.5608 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1526, allocations: 0 / 0.5608 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1526, allocations: 4 kB / 0.5608 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.1528, allocations: 153.7 kB / 0.5609 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.1528, allocations: 0 / 0.5609 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1528, allocations: 0 / 0.5609 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1528, allocations: 3.938 kB / 0.5609 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.1528, allocations: 0 / 0.5609 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1528, allocations: 0 / 0.5609 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1528, allocations: 0 / 0.5609 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.1529, allocations: 98.77 kB / 0.561 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.1529, allocations: 81.05 kB / 0.5611 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.1529, allocations: 7.938 kB / 0.5611 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.905e-06/0.1529, allocations: 0 / 0.5611 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.153, allocations: 0 / 0.5611 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.153, allocations: 7.984 kB / 0.5611 GB, free: 15.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.153, allocations: 75.28 kB / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.153, allocations: 0 / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.1533, allocations: 59.81 kB / 0.5612 GB, free: 15.48 MB / 430.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.000494/0.1538, allocations: 205.8 kB / 0.5614 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.1539, allocations: 59.41 kB / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1539, allocations: 0 / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.154, allocations: 59.34 kB / 0.5615 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.1541, allocations: 6.188 kB / 0.5616 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002018/0.1544, allocations: 81.05 kB / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1547, allocations: 0.6729 MB / 0.5623 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.993e-06/0.1548, allocations: 0 / 0.5623 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.1548, allocations: 7.438 kB / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1548, allocations: 4.125 kB / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of Templates: time 0.004112/0.1589, allocations: 1.273 MB / 0.5635 GB, free: 13.05 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.248059444129467]