Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 107.9 kB / 18.44 MB, free: 4.629 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.001407/0.001407, allocations: 186.3 kB / 19.37 MB, free: 3.707 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.358/1.358, allocations: 222.9 MB / 243.1 MB, free: 15.15 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.2385/0.2385, allocations: 44.17 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 67.89 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4013, allocations: 60.82 MB / 0.5195 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001646/0.403, allocations: 495.8 kB / 0.52 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.4059, allocations: 2.092 MB / 0.5221 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.373e-05/0.406, allocations: 0 / 0.5221 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.736e-05/0.406, allocations: 0 / 0.5221 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.114e-06/0.406, allocations: 3.938 kB / 0.5221 GB, free: 1.832 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002003/0.408, allocations: 0.7235 MB / 0.5228 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.055e-05/0.4081, allocations: 6.062 kB / 0.5228 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.441e-05/0.4082, allocations: 1.781 kB / 0.5228 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.797e-05/0.4082, allocations: 4.5 kB / 0.5228 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.235e-05/0.4082, allocations: 4.969 kB / 0.5228 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.241e-06/0.4082, allocations: 0 / 0.5228 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002357/0.4106, allocations: 1.504 MB / 0.5243 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-06/0.4106, allocations: 0 / 0.5243 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.4106, allocations: 1.375 kB / 0.5243 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001576/0.4122, allocations: 1.545 MB / 0.5258 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4122, allocations: 4 kB / 0.5258 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4122, allocations: 0 / 0.5258 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.4122, allocations: 4 kB / 0.5258 GB, free: 0.5547 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.0005739/0.4128, allocations: 410 kB / 0.5262 GB, free: 132 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.4129, allocations: 13.56 kB / 0.5262 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.4129, allocations: 0.9375 kB / 0.5262 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.729e-05/0.413, allocations: 168.4 kB / 0.5263 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.413, allocations: 1.75 kB / 0.5263 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.413, allocations: 5.5 kB / 0.5263 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.63e-05/0.4131, allocations: 31.02 kB / 0.5264 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.4131, allocations: 3.984 kB / 0.5264 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.4132, allocations: 5.375 kB / 0.5264 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.4132, allocations: 0 / 0.5264 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.774e-05/0.4132, allocations: 1.375 kB / 0.5264 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.4133, allocations: 143.1 kB / 0.5265 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.4134, allocations: 19.95 kB / 0.5265 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.883e-05/0.4134, allocations: 14.17 kB / 0.5266 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.4134, allocations: 5.312 kB / 0.5266 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.4135, allocations: 64.25 kB / 0.5266 GB, free: 15.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.4135, allocations: 1.375 kB / 0.5266 GB, free: 15.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000177/0.4137, allocations: 58.28 kB / 0.5267 GB, free: 15.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.4137, allocations: 78.48 kB / 0.5268 GB, free: 15.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.482e-05/0.4138, allocations: 93.86 kB / 0.5268 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.4138, allocations: 25.7 kB / 0.5269 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.383e-05/0.4138, allocations: 80.14 kB / 0.5269 GB, free: 15.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.4139, allocations: 1.375 kB / 0.5269 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.4139, allocations: 19.2 kB / 0.527 GB, free: 15.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.414, allocations: 312.2 kB / 0.5273 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.414, allocations: 5.312 kB / 0.5273 GB, free: 14.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.634e-06/0.414, allocations: 3.938 kB / 0.5273 GB, free: 14.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.469e-05/0.4141, allocations: 64.39 kB / 0.5273 GB, free: 14.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4141, allocations: 0 / 0.5273 GB, free: 14.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.82e-05/0.4142, allocations: 66.2 kB / 0.5274 GB, free: 14.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.4142, allocations: 35.3 kB / 0.5274 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.4142, allocations: 0 / 0.5274 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.4143, allocations: 1.375 kB / 0.5274 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.4143, allocations: 0 / 0.5274 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.4143, allocations: 0 / 0.5274 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.4143, allocations: 5.281 kB / 0.5274 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.4143, allocations: 0 / 0.5274 GB, free: 14.66 MB / 398.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 9.42e-05/0.4144, allocations: 134.3 kB / 0.5276 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.4144, allocations: 5.312 kB / 0.5276 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.376e-05/0.4144, allocations: 11.11 kB / 0.5276 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.4145, allocations: 3.938 kB / 0.5276 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4145, allocations: 1.375 kB / 0.5276 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4145, allocations: 0 / 0.5276 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.19e-05/0.4146, allocations: 151 kB / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.4146, allocations: 3.938 kB / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.4146, allocations: 1.375 kB / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-06/0.4146, allocations: 0 / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.4146, allocations: 0 / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4146, allocations: 9.344 kB / 0.5277 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4146, allocations: 0 / 0.5277 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.421e-05/0.4147, allocations: 89.84 kB / 0.5278 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-05/0.4147, allocations: 88.83 kB / 0.5279 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.4148, allocations: 1.375 kB / 0.5279 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.4148, allocations: 1.375 kB / 0.5279 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.4148, allocations: 3.984 kB / 0.5279 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.4148, allocations: 1.375 kB / 0.5279 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.4148, allocations: 75.28 kB / 0.528 GB, free: 14.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4148, allocations: 4.031 kB / 0.528 GB, free: 14.01 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009174/0.4158, allocations: 272.4 kB / 0.5283 GB, free: 13.98 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.001362/0.4171, allocations: 416.9 kB / 0.5287 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.964e-05/0.4173, allocations: 69.08 kB / 0.5287 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4173, allocations: 0 / 0.5287 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.018e-05/0.4173, allocations: 54.47 kB / 0.5288 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.4174, allocations: 8.781 kB / 0.5288 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001978/0.4176, allocations: 107.5 kB / 0.5289 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.4179, allocations: 0.6781 MB / 0.5295 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.399e-05/0.4179, allocations: 9.125 kB / 0.5296 GB, free: 12.75 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4179, allocations: 0 / 0.5296 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Templates: time 0.0138/0.4317, allocations: 6.623 MB / 0.536 GB, free: 9.438 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2b/TestMatrices2b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches