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.001178/0.001183, allocations: 114.7 kB / 17.74 MB, free: 5.43 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.001179/0.001179, allocations: 187.1 kB / 18.66 MB, free: 4.508 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.267/1.267, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.1898/0.1898, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3437, allocations: 60.83 MB / 0.5188 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001484/0.3452, allocations: 492.2 kB / 0.5193 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.347, allocations: 1.566 MB / 0.5208 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.628e-05/0.347, allocations: 0 / 0.5208 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.644e-05/0.347, allocations: 1.344 kB / 0.5208 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.04e-06/0.3471, allocations: 0 / 0.5208 GB, free: 2.172 MB / 382.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.0008261/0.3479, allocations: 263.2 kB / 0.5211 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.06e-05/0.348, allocations: 14.98 kB / 0.5211 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.847e-05/0.348, allocations: 9.453 kB / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.348, allocations: 1.156 kB / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.158e-05/0.3481, allocations: 0 / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-06/0.3481, allocations: 0 / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008586/0.3489, allocations: 490.8 kB / 0.5216 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.083e-06/0.349, allocations: 0 / 0.5216 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.349, allocations: 5.25 kB / 0.5216 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.3495, allocations: 300.5 kB / 0.5219 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3495, allocations: 4 kB / 0.5219 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3495, allocations: 1.031 kB / 0.5219 GB, free: 1.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.3495, allocations: 0 / 0.5219 GB, free: 1.906 MB / 382.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.0002834/0.3498, allocations: 375 kB / 0.5222 GB, free: 1.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3498, allocations: 13.16 kB / 0.5222 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.3499, allocations: 4.938 kB / 0.5222 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.219e-05/0.3499, allocations: 161.8 kB / 0.5224 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3499, allocations: 5.531 kB / 0.5224 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.3499, allocations: 1.438 kB / 0.5224 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.471e-05/0.35, allocations: 41.47 kB / 0.5224 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.35, allocations: 0 / 0.5224 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.3501, allocations: 1.562 kB / 0.5224 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.3501, allocations: 0 / 0.5224 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.533e-05/0.3501, allocations: 1.5 kB / 0.5224 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.541e-05/0.3502, allocations: 144 kB / 0.5226 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.043e-05/0.3502, allocations: 21.58 kB / 0.5226 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.179e-05/0.3502, allocations: 6.625 kB / 0.5226 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.3502, allocations: 9.031 kB / 0.5226 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.3503, allocations: 61.94 kB / 0.5227 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3503, allocations: 0 / 0.5227 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001345/0.3504, allocations: 60.44 kB / 0.5227 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.3504, allocations: 78.72 kB / 0.5228 GB, free: 0.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.068e-05/0.3505, allocations: 95.47 kB / 0.5229 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-06/0.3505, allocations: 25.7 kB / 0.5229 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.021e-05/0.3505, allocations: 84.27 kB / 0.523 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.3505, allocations: 1.25 kB / 0.523 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.3505, allocations: 13.17 kB / 0.523 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.021e-05/0.3506, allocations: 311.5 kB / 0.5233 GB, free: 252 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.3506, allocations: 1.734 kB / 0.5233 GB, free: 252 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.181e-06/0.3506, allocations: 5.156 kB / 0.5233 GB, free: 248 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.152e-05/0.3506, allocations: 65.14 kB / 0.5234 GB, free: 172 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3506, allocations: 0 / 0.5234 GB, free: 172 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.175e-05/0.3507, allocations: 64.34 kB / 0.5234 GB, free: 104 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3507, allocations: 35.89 kB / 0.5235 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3507, allocations: 0 / 0.5235 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.3508, allocations: 5.125 kB / 0.5235 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3508, allocations: 0.6562 kB / 0.5235 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3508, allocations: 3.984 kB / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.3508, allocations: 1.344 kB / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.3508, allocations: 0.7031 kB / 0.5235 GB, free: 60 kB / 382.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.638e-05/0.3509, allocations: 138.7 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.3509, allocations: 9.547 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.817e-06/0.3509, allocations: 7.719 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.3509, allocations: 1.281 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3509, allocations: 0 / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3509, allocations: 0.6094 kB / 0.5236 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.3511, allocations: 153.8 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3511, allocations: 0 / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-06/0.3511, allocations: 1.891 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3511, allocations: 3.938 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.3511, allocations: 1.125 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.3511, allocations: 4.516 kB / 0.5238 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3511, allocations: 0 / 0.5238 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.901e-05/0.3512, allocations: 92.75 kB / 0.5239 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.825e-05/0.3513, allocations: 79.81 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.3513, allocations: 8.594 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3514, allocations: 2 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.3514, allocations: 0 / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.3514, allocations: 6.453 kB / 0.524 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.281e-05/0.3514, allocations: 75.28 kB / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.3514, allocations: 0 / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.3517, allocations: 66.97 kB / 0.5241 GB, free: 15.39 MB / 398.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.0004145/0.3521, allocations: 187.5 kB / 0.5243 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.877e-05/0.3522, allocations: 58.06 kB / 0.5244 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3522, allocations: 1.031 kB / 0.5244 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.945e-05/0.3523, allocations: 59.53 kB / 0.5244 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.3524, allocations: 5.844 kB / 0.5244 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001632/0.3526, allocations: 79.03 kB / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.3529, allocations: 0.6747 MB / 0.5252 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.849e-06/0.3529, allocations: 0 / 0.5252 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.752e-05/0.3529, allocations: 9.031 kB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3529, allocations: 0 / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of Templates: time 0.003828/0.3567, allocations: 1.281 MB / 0.5264 GB, free: 14.07 MB / 398.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