Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009533/0.0009534, allocations: 197.6 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007806/0.0007809, allocations: 98.73 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2896/0.2896, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002442, allocations: 8 kB / 470.8 MB, free: 7.137 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2688, allocations: 63.11 MB / 0.5214 GB, free: 38.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0004485/0.2693, allocations: 218.2 kB / 0.5216 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.2708, allocations: 2.01 MB / 0.5235 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.788e-06/0.2708, allocations: 4 kB / 0.5235 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.2708, allocations: 0 / 0.5235 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.918e-06/0.2708, allocations: 0 / 0.5235 GB, free: 36.62 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005873/0.2714, allocations: 246.5 kB / 0.5238 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.398e-05/0.2714, allocations: 4 kB / 0.5238 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.103e-05/0.2715, allocations: 3.156 kB / 0.5238 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.236e-05/0.2715, allocations: 0 / 0.5238 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.657e-05/0.2715, allocations: 4 kB / 0.5238 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.318e-06/0.2715, allocations: 0 / 0.5238 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004673/0.272, allocations: 463.1 kB / 0.5242 GB, free: 36.45 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.681e-06/0.272, allocations: 0 / 0.5242 GB, free: 36.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.272, allocations: 28.42 kB / 0.5243 GB, free: 36.42 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.2724, allocations: 308.6 kB / 0.5246 GB, free: 36.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2724, allocations: 0 / 0.5246 GB, free: 36.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2724, allocations: 0 / 0.5246 GB, free: 36.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.2724, allocations: 4 kB / 0.5246 GB, free: 36.35 MB / 378.7 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.0002091/0.2726, allocations: 378.5 kB / 0.5249 GB, free: 35.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.2727, allocations: 8.938 kB / 0.5249 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.169e-05/0.2727, allocations: 4.922 kB / 0.5249 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.643e-05/0.2727, allocations: 160.4 kB / 0.5251 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2727, allocations: 384 / 0.5251 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.2728, allocations: 3.281 kB / 0.5251 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.251e-05/0.2728, allocations: 36.25 kB / 0.5251 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.84e-06/0.2728, allocations: 7.938 kB / 0.5251 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-06/0.2729, allocations: 0 / 0.5251 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.2729, allocations: 0 / 0.5251 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.385e-05/0.2729, allocations: 0 / 0.5251 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.373e-05/0.273, allocations: 152.6 kB / 0.5253 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.508e-05/0.273, allocations: 21.08 kB / 0.5253 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.648e-06/0.273, allocations: 8.859 kB / 0.5253 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.273, allocations: 0 / 0.5253 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.273, allocations: 64.2 kB / 0.5254 GB, free: 35.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.2731, allocations: 0 / 0.5254 GB, free: 35.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.00012/0.2732, allocations: 75.39 kB / 0.5254 GB, free: 35.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/0.2732, allocations: 77.11 kB / 0.5255 GB, free: 35.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.77e-05/0.2732, allocations: 89.86 kB / 0.5256 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.74e-06/0.2732, allocations: 28.58 kB / 0.5256 GB, free: 35.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.496e-06/0.2733, allocations: 80.14 kB / 0.5257 GB, free: 35.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.2733, allocations: 128 / 0.5257 GB, free: 35.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-06/0.2733, allocations: 4 kB / 0.5257 GB, free: 35.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.506e-05/0.2733, allocations: 310.8 kB / 0.526 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-06/0.2733, allocations: 2.969 kB / 0.526 GB, free: 34.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.758e-06/0.2733, allocations: 0 / 0.526 GB, free: 34.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.798e-05/0.2734, allocations: 66.42 kB / 0.5261 GB, free: 34.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2734, allocations: 0 / 0.5261 GB, free: 34.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.575e-05/0.2734, allocations: 63.66 kB / 0.5261 GB, free: 34.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2735, allocations: 39.05 kB / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.2735, allocations: 4 kB / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.2735, allocations: 3.938 kB / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.2735, allocations: 0 / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.2735, allocations: 0 / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.293e-05/0.2735, allocations: 0 / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.2735, allocations: 2.938 kB / 0.5262 GB, free: 34.52 MB / 378.7 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 4.887e-05/0.2736, allocations: 135.5 kB / 0.5263 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.313e-06/0.2736, allocations: 6.812 kB / 0.5263 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.985e-06/0.2736, allocations: 9.797 kB / 0.5263 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2736, allocations: 0 / 0.5263 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.2736, allocations: 0 / 0.5263 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2736, allocations: 0 / 0.5263 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.493e-05/0.2737, allocations: 148 kB / 0.5265 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2737, allocations: 0 / 0.5265 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.2737, allocations: 4 kB / 0.5265 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2737, allocations: 3.938 kB / 0.5265 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.2737, allocations: 2.781 kB / 0.5265 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.2737, allocations: 0 / 0.5265 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2737, allocations: 3.938 kB / 0.5265 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.76e-05/0.2738, allocations: 95.17 kB / 0.5266 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.192e-05/0.2738, allocations: 80.05 kB / 0.5266 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.2738, allocations: 3.938 kB / 0.5266 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.2738, allocations: 0 / 0.5266 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.008e-05/0.2738, allocations: 2.906 kB / 0.5266 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.2739, allocations: 0 / 0.5266 GB, free: 33.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.158e-05/0.2739, allocations: 79.28 kB / 0.5267 GB, free: 33.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2739, allocations: 4.031 kB / 0.5267 GB, free: 33.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002657/0.2741, allocations: 65.88 kB / 0.5268 GB, free: 33.86 MB / 378.7 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.000337/0.2745, allocations: 202.4 kB / 0.527 GB, free: 33.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.225e-05/0.2746, allocations: 57.53 kB / 0.527 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2746, allocations: 0 / 0.527 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.2746, allocations: 64.69 kB / 0.5271 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001075/0.2747, allocations: 0 / 0.5271 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001159/0.2748, allocations: 82.97 kB / 0.5272 GB, free: 33.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.996e-05/0.2749, allocations: 0.6731 MB / 0.5278 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.369e-06/0.2749, allocations: 0 / 0.5278 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.941e-06/0.2749, allocations: 7.438 kB / 0.5278 GB, free: 32.8 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.2749, allocations: 0 / 0.5278 GB, free: 32.8 MB / 378.7 MB Notification: Performance of Templates: time 0.002926/0.2779, allocations: 1.26 MB / 0.5291 GB, free: 32.69 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches