Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.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.00175/0.00175, allocations: 120.9 kB / 19.18 MB, free: 3.949 MB / 14.72 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.002011/0.002011, allocations: 210.6 kB / 22.13 MB, free: 1.004 MB / 14.72 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 1.517/1.517, allocations: 230.3 MB / 255.2 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2346/0.2346, allocations: 46.92 MB / 358.2 MB, free: 10.42 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-beta.om/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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 75.88 kB / 0.4925 GB, free: 7.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1276, allocations: 66 MB / 0.5569 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001825/0.1294, allocations: 0.4931 MB / 0.5574 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002478/0.1319, allocations: 1.61 MB / 0.559 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.928e-05/0.1319, allocations: 0 / 0.559 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.1319, allocations: 0 / 0.559 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.95e-06/0.1319, allocations: 0 / 0.559 GB, free: 3.43 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0009571/0.1329, allocations: 275.2 kB / 0.5593 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.634e-05/0.133, allocations: 7.922 kB / 0.5593 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.368e-05/0.133, allocations: 0 / 0.5593 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.133, allocations: 8 kB / 0.5593 GB, free: 3.145 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.945e-05/0.133, allocations: 3.938 kB / 0.5593 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.133, allocations: 0 / 0.5593 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008976/0.1339, allocations: 0.5379 MB / 0.5598 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.1339, allocations: 3.984 kB / 0.5598 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.174e-05/0.134, allocations: 3.938 kB / 0.5598 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005138/0.1345, allocations: 307.3 kB / 0.5601 GB, free: 2.293 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1345, allocations: 0 / 0.5601 GB, free: 2.293 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1345, allocations: 4 kB / 0.5601 GB, free: 2.289 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.1345, allocations: 0 / 0.5601 GB, free: 2.289 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.0004582/0.135, allocations: 372.8 kB / 0.5605 GB, free: 1.871 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.135, allocations: 16.03 kB / 0.5605 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.135, allocations: 0.9375 kB / 0.5605 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.1351, allocations: 164.4 kB / 0.5606 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1352, allocations: 384 / 0.5606 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.1352, allocations: 384 / 0.5606 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.456e-05/0.1353, allocations: 34.02 kB / 0.5607 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1353, allocations: 0 / 0.5607 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.1353, allocations: 0 / 0.5607 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1353, allocations: 0 / 0.5607 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.309e-05/0.1353, allocations: 7.938 kB / 0.5607 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.1354, allocations: 153.7 kB / 0.5608 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.89e-05/0.1355, allocations: 18.58 kB / 0.5608 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.477e-05/0.1355, allocations: 8.953 kB / 0.5609 GB, free: 1.371 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.1355, allocations: 3.984 kB / 0.5609 GB, free: 1.367 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/0.1356, allocations: 60.2 kB / 0.5609 GB, free: 1.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1356, allocations: 3.938 kB / 0.5609 GB, free: 1.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001858/0.1358, allocations: 75.33 kB / 0.561 GB, free: 1.203 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.1358, allocations: 77.11 kB / 0.5611 GB, free: 1.109 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.353e-05/0.1359, allocations: 93.81 kB / 0.5612 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1359, allocations: 25.7 kB / 0.5612 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.1359, allocations: 80.14 kB / 0.5613 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.136, allocations: 4 kB / 0.5613 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.136, allocations: 9.719 kB / 0.5613 GB, free: 0.875 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1361, allocations: 315 kB / 0.5616 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/0.1361, allocations: 12 kB / 0.5616 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.593e-06/0.1361, allocations: 0 / 0.5616 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.825e-05/0.1362, allocations: 64.25 kB / 0.5616 GB, free: 480 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.1362, allocations: 0 / 0.5616 GB, free: 480 kB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.818e-05/0.1363, allocations: 63.34 kB / 0.5617 GB, free: 404 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.1363, allocations: 37.64 kB / 0.5617 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1363, allocations: 0 / 0.5617 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1364, allocations: 0 / 0.5617 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1364, allocations: 8.031 kB / 0.5617 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.1364, allocations: 7.969 kB / 0.5618 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.744e-05/0.1364, allocations: 4 kB / 0.5618 GB, free: 340 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.1364, allocations: 0 / 0.5618 GB, free: 340 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 8.943e-05/0.1365, allocations: 131.5 kB / 0.5619 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.1365, allocations: 7.938 kB / 0.5619 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.856e-06/0.1365, allocations: 3.125 kB / 0.5619 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1365, allocations: 0 / 0.5619 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1365, allocations: 0 / 0.5619 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.1365, allocations: 4 kB / 0.5619 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.1366, allocations: 145.7 kB / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1366, allocations: 0 / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-06/0.1366, allocations: 4 kB / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1367, allocations: 3.938 kB / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1367, allocations: 0 / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1367, allocations: 0 / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1367, allocations: 0 / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.1368, allocations: 98.77 kB / 0.5621 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.1368, allocations: 77.11 kB / 0.5622 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1368, allocations: 7.875 kB / 0.5622 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1368, allocations: 0 / 0.5622 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.771e-05/0.1369, allocations: 8 kB / 0.5622 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1369, allocations: 3.984 kB / 0.5622 GB, free: 15.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.953e-05/0.1369, allocations: 75.28 kB / 0.5623 GB, free: 15.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1369, allocations: 0 / 0.5623 GB, free: 15.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003319/0.1372, allocations: 63.8 kB / 0.5624 GB, free: 15.61 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.0005799/0.1378, allocations: 190.7 kB / 0.5625 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.1379, allocations: 67.39 kB / 0.5626 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1379, allocations: 0 / 0.5626 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.138, allocations: 59.34 kB / 0.5627 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1381, allocations: 1.547 kB / 0.5627 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002221/0.1383, allocations: 102.8 kB / 0.5628 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1386, allocations: 0.6729 MB / 0.5634 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.617e-05/0.1386, allocations: 11.44 kB / 0.5634 GB, free: 14.42 MB / 430.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1386, allocations: 128 / 0.5634 GB, free: 14.42 MB / 430.1 MB Notification: Performance of Templates: time 0.003388/0.142, allocations: 1.271 MB / 0.5647 GB, free: 13.15 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 8.266557000009925]