Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 106.2 kB / 18.44 MB, free: 4.648 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.001978/0.001978, allocations: 190.2 kB / 19.38 MB, free: 3.723 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.398/1.398, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.2189/0.2189, allocations: 44.19 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3767, allocations: 60.82 MB / 0.5195 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001495/0.3783, allocations: 0.5082 MB / 0.52 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008166/0.3865, allocations: 4.813 MB / 0.5247 GB, free: 132 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.614e-05/0.3865, allocations: 0 / 0.5247 GB, free: 132 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.3866, allocations: 0 / 0.5247 GB, free: 132 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.344e-06/0.3866, allocations: 4 kB / 0.5247 GB, free: 128 kB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.008557/0.3952, allocations: 2.945 MB / 0.5276 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.899e-05/0.3952, allocations: 2.75 kB / 0.5276 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.3953, allocations: 4 kB / 0.5276 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.3953, allocations: 1.375 kB / 0.5276 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.054e-05/0.3953, allocations: 5.359 kB / 0.5276 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.3954, allocations: 0 / 0.5276 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03175/0.4271, allocations: 18.8 MB / 0.546 GB, free: 1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.4272, allocations: 0 / 0.546 GB, free: 1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.903e-05/0.4272, allocations: 8 kB / 0.546 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04157/0.4688, allocations: 27.47 MB / 0.5728 GB, free: 5.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.4688, allocations: 4 kB / 0.5728 GB, free: 5.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4688, allocations: 0 / 0.5728 GB, free: 5.477 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.4689, allocations: 0 / 0.5728 GB, free: 5.477 MB / 430.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.009352/0.4782, allocations: 0.6495 MB / 0.5735 GB, free: 4.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.4783, allocations: 15.97 kB / 0.5735 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.067e-05/0.4783, allocations: 0.9375 kB / 0.5735 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.4785, allocations: 167 kB / 0.5736 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.4785, allocations: 0 / 0.5736 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.4785, allocations: 0 / 0.5736 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.4787, allocations: 41.62 kB / 0.5737 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.4787, allocations: 0 / 0.5737 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4787, allocations: 0 / 0.5737 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.4787, allocations: 0 / 0.5737 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.385e-05/0.4787, allocations: 0 / 0.5737 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001912/0.4789, allocations: 153.6 kB / 0.5738 GB, free: 4.312 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.241e-05/0.479, allocations: 14.58 kB / 0.5738 GB, free: 4.289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.65e-05/0.479, allocations: 4.953 kB / 0.5738 GB, free: 4.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.479, allocations: 8 kB / 0.5738 GB, free: 4.273 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/0.4791, allocations: 60.25 kB / 0.5739 GB, free: 4.199 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 3.025e-06/0.4791, allocations: 3.938 kB / 0.5739 GB, free: 4.195 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002037/0.4793, allocations: 71.33 kB / 0.574 GB, free: 4.113 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.4794, allocations: 77.11 kB / 0.574 GB, free: 4.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.79e-05/0.4794, allocations: 89.86 kB / 0.5741 GB, free: 3.922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.4795, allocations: 25.7 kB / 0.5742 GB, free: 3.891 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.4795, allocations: 84.27 kB / 0.5742 GB, free: 3.805 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.4795, allocations: 7.906 kB / 0.5742 GB, free: 3.797 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.4796, allocations: 13.7 kB / 0.5743 GB, free: 3.777 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4797, allocations: 318.8 kB / 0.5746 GB, free: 3.457 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.4798, allocations: 0 / 0.5746 GB, free: 3.457 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.843e-06/0.4798, allocations: 4 kB / 0.5746 GB, free: 3.453 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.46e-05/0.4798, allocations: 64.2 kB / 0.5746 GB, free: 3.375 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4798, allocations: 0 / 0.5746 GB, free: 3.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.309e-05/0.4799, allocations: 63.45 kB / 0.5747 GB, free: 3.301 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.184e-05/0.48, allocations: 33.7 kB / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.48, allocations: 0 / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.48, allocations: 0 / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.143e-06/0.48, allocations: 0 / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.48, allocations: 0 / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.4801, allocations: 0 / 0.5747 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.4801, allocations: 7.938 kB / 0.5747 GB, free: 3.254 MB / 430.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.0001196/0.4802, allocations: 135.6 kB / 0.5749 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.4802, allocations: 7.984 kB / 0.5749 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.503e-05/0.4802, allocations: 7.125 kB / 0.5749 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.4803, allocations: 0 / 0.5749 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4803, allocations: 0 / 0.5749 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.4803, allocations: 0 / 0.5749 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.4804, allocations: 149.6 kB / 0.575 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4804, allocations: 0 / 0.575 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.096e-06/0.4804, allocations: 0 / 0.575 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.4804, allocations: 11.92 kB / 0.575 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.4805, allocations: 4 kB / 0.575 GB, free: 2.879 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4805, allocations: 4 kB / 0.575 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4805, allocations: 0 / 0.575 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.4806, allocations: 90.78 kB / 0.5751 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.4806, allocations: 81.09 kB / 0.5752 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.4807, allocations: 0 / 0.5752 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.261e-05/0.4807, allocations: 3.938 kB / 0.5752 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.4807, allocations: 0 / 0.5752 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.4807, allocations: 4 kB / 0.5752 GB, free: 2.656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.266e-05/0.4807, allocations: 83.25 kB / 0.5753 GB, free: 2.574 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4808, allocations: 0 / 0.5753 GB, free: 2.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01264/0.4934, allocations: 3.777 MB / 0.579 GB, free: 14.8 MB / 446.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.0247/0.5181, allocations: 0.9685 MB / 0.5799 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.5183, allocations: 59.41 kB / 0.58 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.5184, allocations: 4.062 kB / 0.58 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/0.5184, allocations: 59.39 kB / 0.58 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.5186, allocations: 0 / 0.58 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002505/0.5189, allocations: 98.78 kB / 0.5801 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.5191, allocations: 0.6727 MB / 0.5808 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.5192, allocations: 11.44 kB / 0.5808 GB, free: 12.86 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5192, allocations: 0 / 0.5808 GB, free: 12.86 MB / 446.1 MB Notification: Performance of Templates: time 0.09984/0.619, allocations: 64.88 MB / 0.6442 GB, free: 11.87 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches