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.0018/0.0018, allocations: 115.7 kB / 17.78 MB, free: 5.254 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.001775/0.001775, allocations: 185 kB / 18.72 MB, free: 4.332 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.278/1.278, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2002/0.2002, allocations: 44.18 MB / 336.7 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3245, allocations: 60.82 MB / 0.5189 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001674/0.3263, allocations: 496.9 kB / 0.5194 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.3281, allocations: 1.561 MB / 0.5209 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.728e-05/0.3282, allocations: 0 / 0.5209 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.3282, allocations: 1.125 kB / 0.5209 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.3282, allocations: 0 / 0.5209 GB, free: 2.422 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.0008329/0.3291, allocations: 268 kB / 0.5211 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.935e-05/0.3291, allocations: 10.17 kB / 0.5212 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.596e-05/0.3292, allocations: 2.078 kB / 0.5212 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.448e-05/0.3292, allocations: 0 / 0.5212 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.3292, allocations: 1.125 kB / 0.5212 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-06/0.3292, allocations: 0 / 0.5212 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007878/0.33, allocations: 0.4904 MB / 0.5216 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.33, allocations: 0 / 0.5216 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.001e-05/0.3301, allocations: 1.438 kB / 0.5216 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.3306, allocations: 301.6 kB / 0.5219 GB, free: 2.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3306, allocations: 0 / 0.5219 GB, free: 2.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3306, allocations: 1 kB / 0.5219 GB, free: 2.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3306, allocations: 0 / 0.5219 GB, free: 2.16 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.0003794/0.331, allocations: 381.8 kB / 0.5223 GB, free: 1.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3311, allocations: 8.844 kB / 0.5223 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.3311, allocations: 2.828 kB / 0.5223 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.521e-05/0.3312, allocations: 165.1 kB / 0.5225 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3312, allocations: 1.688 kB / 0.5225 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.3312, allocations: 4.922 kB / 0.5225 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.711e-05/0.3313, allocations: 34.16 kB / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3313, allocations: 0 / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3313, allocations: 0 / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3313, allocations: 1.562 kB / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.958e-05/0.3314, allocations: 2.141 kB / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.687e-05/0.3315, allocations: 150.9 kB / 0.5226 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.71e-05/0.3315, allocations: 17.64 kB / 0.5227 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.392e-05/0.3315, allocations: 10.97 kB / 0.5227 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.3315, allocations: 1.375 kB / 0.5227 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3316, allocations: 60.2 kB / 0.5227 GB, free: 1.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3316, allocations: 1.125 kB / 0.5227 GB, free: 1.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001617/0.3318, allocations: 64.73 kB / 0.5228 GB, free: 1.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.3318, allocations: 87.41 kB / 0.5229 GB, free: 1.039 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.074e-05/0.3318, allocations: 90.89 kB / 0.523 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-06/0.3318, allocations: 25.7 kB / 0.523 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.171e-05/0.3319, allocations: 80.14 kB / 0.5231 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.3319, allocations: 1.094 kB / 0.5231 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-05/0.3319, allocations: 12.72 kB / 0.5231 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.332, allocations: 316.8 kB / 0.5234 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.868e-06/0.332, allocations: 3.938 kB / 0.5234 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.332, allocations: 6.266 kB / 0.5234 GB, free: 500 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.297e-05/0.332, allocations: 63.89 kB / 0.5234 GB, free: 424 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.332, allocations: 0 / 0.5234 GB, free: 424 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.158e-05/0.3321, allocations: 60.55 kB / 0.5235 GB, free: 360 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.3321, allocations: 36.25 kB / 0.5235 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3321, allocations: 3.984 kB / 0.5235 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3322, allocations: 1.125 kB / 0.5235 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-06/0.3322, allocations: 0.7031 kB / 0.5235 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.3322, allocations: 5.188 kB / 0.5236 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.3322, allocations: 8 kB / 0.5236 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.3322, allocations: 1.625 kB / 0.5236 GB, free: 308 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 5.513e-05/0.3323, allocations: 138.6 kB / 0.5237 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.3323, allocations: 9.828 kB / 0.5237 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.3323, allocations: 3.828 kB / 0.5237 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3323, allocations: 0 / 0.5237 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3323, allocations: 1.062 kB / 0.5237 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.3323, allocations: 0 / 0.5237 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.583e-05/0.3324, allocations: 150.4 kB / 0.5239 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3324, allocations: 4 kB / 0.5239 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3324, allocations: 0 / 0.5239 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.3324, allocations: 9.656 kB / 0.5239 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.3325, allocations: 0 / 0.5239 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3325, allocations: 1.703 kB / 0.5239 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3325, allocations: 0 / 0.5239 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.745e-05/0.3326, allocations: 88.58 kB / 0.524 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.3326, allocations: 83.12 kB / 0.524 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.3326, allocations: 5.719 kB / 0.524 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-06/0.3327, allocations: 0 / 0.524 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.3327, allocations: 5.734 kB / 0.524 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.942e-06/0.3327, allocations: 1.156 kB / 0.524 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.632e-05/0.3327, allocations: 79.22 kB / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3327, allocations: 0 / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.3331, allocations: 63.14 kB / 0.5242 GB, free: 15.64 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.0004177/0.3335, allocations: 198 kB / 0.5244 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.3336, allocations: 66.12 kB / 0.5244 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3336, allocations: 0 / 0.5244 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.993e-05/0.3337, allocations: 55.17 kB / 0.5245 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.3338, allocations: 1.594 kB / 0.5245 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001843/0.334, allocations: 76.62 kB / 0.5246 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.3342, allocations: 0.6762 MB / 0.5252 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.3342, allocations: 0 / 0.5252 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.163e-05/0.3343, allocations: 8.281 kB / 0.5252 GB, free: 14.58 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3343, allocations: 0 / 0.5252 GB, free: 14.58 MB / 398.1 MB Notification: Performance of Templates: time 0.004034/0.3383, allocations: 1.286 MB / 0.5265 GB, free: 14.26 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