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.001348/0.001348, allocations: 104.1 kB / 17.21 MB, free: 6.27 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.001192/0.001192, allocations: 190 kB / 18.12 MB, free: 5.363 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.386/1.386, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2063/0.2063, allocations: 44.17 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.44 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1268, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001884/0.1288, allocations: 0.5448 MB / 469.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1308, allocations: 1.571 MB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.19e-05/0.1308, allocations: 3.938 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.1309, allocations: 4 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.1309, allocations: 0 / 470.6 MB, free: 12.71 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.0007864/0.1317, allocations: 243.5 kB / 470.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.176e-05/0.1317, allocations: 4 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.967e-05/0.1318, allocations: 0 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.602e-05/0.1318, allocations: 0 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.048e-05/0.1318, allocations: 3.984 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.1318, allocations: 8 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006623/0.1325, allocations: 482.9 kB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.186e-06/0.1325, allocations: 0 / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.1325, allocations: 3.984 kB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.133, allocations: 307.4 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.133, allocations: 3.938 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.133, allocations: 3.938 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.778e-06/0.133, allocations: 0 / 471.7 MB, free: 11.68 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.0004173/0.1334, allocations: 377.3 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1335, allocations: 8.031 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.1335, allocations: 0.9375 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.933e-05/0.1336, allocations: 168.4 kB / 472.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.1336, allocations: 384 / 472.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.1336, allocations: 4.375 kB / 472.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.547e-05/0.1337, allocations: 30.02 kB / 472.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.1337, allocations: 3.938 kB / 472.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.1338, allocations: 4 kB / 472.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1338, allocations: 0 / 472.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.1338, allocations: 4 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001285/0.1339, allocations: 149.7 kB / 472.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.96e-05/0.134, allocations: 18.61 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.134, allocations: 4.859 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.134, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.1341, allocations: 64.2 kB / 472.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1341, allocations: 0 / 472.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001848/0.1343, allocations: 71.39 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.1343, allocations: 77.11 kB / 472.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.887e-05/0.1344, allocations: 93.86 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.1344, allocations: 25.7 kB / 472.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.178e-05/0.1344, allocations: 80.14 kB / 472.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.1345, allocations: 0 / 472.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.1345, allocations: 13.84 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1346, allocations: 318.8 kB / 473.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.937e-06/0.1346, allocations: 0 / 473.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-06/0.1346, allocations: 0 / 473.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.782e-05/0.1347, allocations: 68.19 kB / 473.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1347, allocations: 3.938 kB / 473.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.378e-05/0.1348, allocations: 63.31 kB / 473.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.1348, allocations: 37.64 kB / 473.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1348, allocations: 8.094 kB / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1349, allocations: 0 / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-06/0.1349, allocations: 0 / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1349, allocations: 7.984 kB / 473.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.885e-05/0.1349, allocations: 0 / 473.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.1349, allocations: 0 / 473.3 MB, free: 9.734 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 0.0001157/0.135, allocations: 135.5 kB / 473.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-06/0.135, allocations: 3.938 kB / 473.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.032e-05/0.1351, allocations: 7.062 kB / 473.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1351, allocations: 4 kB / 473.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1351, allocations: 0 / 473.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1351, allocations: 0 / 473.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.465e-05/0.1352, allocations: 149.7 kB / 473.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1352, allocations: 0 / 473.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1352, allocations: 0 / 473.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1352, allocations: 3.938 kB / 473.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.1352, allocations: 0 / 473.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1352, allocations: 3.938 kB / 473.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1352, allocations: 0 / 473.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.1353, allocations: 94.83 kB / 473.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/0.1354, allocations: 77.11 kB / 473.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.1354, allocations: 3.938 kB / 473.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.1354, allocations: 4 kB / 473.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.937e-05/0.1354, allocations: 4 kB / 473.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.1354, allocations: 0 / 473.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.743e-05/0.1355, allocations: 75.28 kB / 473.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1355, allocations: 32 / 473.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.1358, allocations: 67.98 kB / 474 MB, free: 9.004 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.0005279/0.1363, allocations: 199.4 kB / 474.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1365, allocations: 63.34 kB / 474.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1365, allocations: 0 / 474.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.349e-05/0.1365, allocations: 55.41 kB / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1366, allocations: 6.812 kB / 474.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002056/0.1369, allocations: 70.75 kB / 474.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.1372, allocations: 0.6772 MB / 475 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.691e-06/0.1372, allocations: 3.938 kB / 475 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.057e-05/0.1372, allocations: 7.438 kB / 475 MB, free: 7.855 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1372, allocations: 0 / 475 MB, free: 7.855 MB / 350.1 MB Notification: Performance of Templates: time 0.003923/0.1411, allocations: 1.273 MB / 476.3 MB, free: 6.582 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