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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008583/0.0008584, allocations: 90 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007972/0.0007973, allocations: 178.5 kB / 18.26 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.3 MB / 242.3 MB, free: 76 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2181/0.2181, allocations: 44.26 MB / 337.7 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003279, allocations: 8 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006419/0.1381, allocations: 213.2 kB / 472.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.1402, allocations: 1.556 MB / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.065e-05/0.1403, allocations: 0 / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/0.1403, allocations: 0 / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.1403, allocations: 0 / 474 MB, free: 11.55 MB / 350.1 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.0007473/0.141, allocations: 239.5 kB / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.843e-05/0.1411, allocations: 4 kB / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.697e-05/0.1411, allocations: 0 / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.947e-05/0.1412, allocations: 3.938 kB / 474.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.1412, allocations: 7.984 kB / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-06/0.1412, allocations: 0 / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006249/0.1418, allocations: 479 kB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.1419, allocations: 7.984 kB / 474.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.339e-05/0.1419, allocations: 29.64 kB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.1423, allocations: 307.4 kB / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1423, allocations: 4 kB / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1424, allocations: 4 kB / 475.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1424, allocations: 0 / 475.1 MB, free: 10.48 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.0003373/0.1427, allocations: 369.3 kB / 475.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1428, allocations: 8.031 kB / 475.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.1428, allocations: 4.875 kB / 475.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1429, allocations: 164.4 kB / 475.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1429, allocations: 384 / 475.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.1429, allocations: 384 / 475.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.266e-05/0.143, allocations: 38 kB / 475.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1431, allocations: 7.984 kB / 475.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-06/0.1431, allocations: 0 / 475.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.1431, allocations: 0 / 475.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.658e-05/0.1431, allocations: 3.938 kB / 475.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.1432, allocations: 145.7 kB / 475.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.816e-05/0.1433, allocations: 18.58 kB / 475.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.057e-05/0.1433, allocations: 8.797 kB / 475.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.543e-06/0.1433, allocations: 0 / 475.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.1434, allocations: 72.25 kB / 475.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1434, allocations: 0 / 475.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.1435, allocations: 63.34 kB / 476 MB, free: 9.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.1436, allocations: 81.11 kB / 476 MB, free: 9.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.867e-05/0.1437, allocations: 89.86 kB / 476.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1437, allocations: 25.7 kB / 476.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.1437, allocations: 80.14 kB / 476.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.1437, allocations: 4.125 kB / 476.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.1438, allocations: 17.7 kB / 476.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1439, allocations: 310.8 kB / 476.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-06/0.1439, allocations: 0 / 476.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.018e-06/0.1439, allocations: 0 / 476.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.791e-05/0.144, allocations: 64.27 kB / 476.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.144, allocations: 3.938 kB / 476.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.844e-05/0.144, allocations: 67.3 kB / 476.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.1441, allocations: 37.73 kB / 476.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1441, allocations: 0 / 476.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1441, allocations: 0 / 476.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.965e-06/0.1441, allocations: 4 kB / 476.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.1441, allocations: 0 / 476.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.403e-05/0.1442, allocations: 0 / 476.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1442, allocations: 0 / 476.7 MB, free: 8.559 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.437e-05/0.1443, allocations: 135.5 kB / 476.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-06/0.1443, allocations: 7.875 kB / 476.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.434e-05/0.1443, allocations: 11.11 kB / 476.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1443, allocations: 0 / 476.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1443, allocations: 0 / 476.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.1443, allocations: 0 / 476.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.1444, allocations: 149.7 kB / 477 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1444, allocations: 0 / 477 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1444, allocations: 0 / 477 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1444, allocations: 3.938 kB / 477 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.1444, allocations: 0 / 477 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1445, allocations: 7.984 kB / 477 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.1445, allocations: 3.938 kB / 477 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.751e-05/0.1446, allocations: 90.84 kB / 477.1 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.1446, allocations: 77.11 kB / 477.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.1446, allocations: 11.92 kB / 477.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-06/0.1446, allocations: 0 / 477.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.1447, allocations: 0 / 477.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1447, allocations: 3.938 kB / 477.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.936e-05/0.1447, allocations: 75.28 kB / 477.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1447, allocations: 4.031 kB / 477.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.145, allocations: 63.98 kB / 477.4 MB, free: 7.816 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.0004564/0.1455, allocations: 201.9 kB / 477.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.524e-05/0.1456, allocations: 59.34 kB / 477.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1456, allocations: 0 / 477.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.54e-05/0.1456, allocations: 59.39 kB / 477.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1458, allocations: 4 kB / 477.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001803/0.146, allocations: 78.83 kB / 477.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.1462, allocations: 0.6692 MB / 478.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.571e-06/0.1463, allocations: 0 / 478.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.488e-06/0.1463, allocations: 11.44 kB / 478.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1463, allocations: 0 / 478.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of Templates: time 0.003927/0.1502, allocations: 1.269 MB / 479.7 MB, free: 5.398 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches