Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00182/0.00182, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.254/0.254, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 79.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.433/0.4343, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001639/0.436, allocations: 497.8 kB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.4382, allocations: 1.619 MB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.777e-05/0.4382, allocations: 0 / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.871e-05/0.4383, allocations: 0 / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.883e-06/0.4383, allocations: 1.25 kB / 0.533 GB, free: 11.95 MB / 398.1 MB [/home/hudson/saved_omc/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.0008627/0.4391, allocations: 267.8 kB / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.38e-05/0.4392, allocations: 9.438 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.203e-05/0.4393, allocations: 1.469 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.795e-05/0.4393, allocations: 0 / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.572e-05/0.4393, allocations: 1.406 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.4394, allocations: 0 / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007602/0.4401, allocations: 0.4909 MB / 0.5338 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-06/0.4401, allocations: 0 / 0.5338 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.4402, allocations: 1.375 kB / 0.5338 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.4406, allocations: 317.3 kB / 0.5341 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.4406, allocations: 0 / 0.5341 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4407, allocations: 0 / 0.5341 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.4407, allocations: 0 / 0.5341 GB, free: 11.4 MB / 398.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.0004205/0.4411, allocations: 375.8 kB / 0.5344 GB, free: 10.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.4411, allocations: 9.625 kB / 0.5344 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.4412, allocations: 4.922 kB / 0.5345 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.4413, allocations: 161.8 kB / 0.5346 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.4413, allocations: 384 / 0.5346 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.4413, allocations: 1.75 kB / 0.5346 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.857e-05/0.4414, allocations: 40.58 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.4414, allocations: 0 / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.4414, allocations: 0 / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.4414, allocations: 1.344 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.85e-05/0.4415, allocations: 1.094 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.4416, allocations: 150.7 kB / 0.5348 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.042e-05/0.4417, allocations: 20.77 kB / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.4417, allocations: 9.953 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.4417, allocations: 0 / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.4417, allocations: 65.17 kB / 0.5349 GB, free: 10.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.4418, allocations: 0 / 0.5349 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001722/0.4419, allocations: 64.02 kB / 0.5349 GB, free: 10.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.442, allocations: 81.11 kB / 0.535 GB, free: 10.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.991e-05/0.4421, allocations: 94.94 kB / 0.5351 GB, free: 10.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.4421, allocations: 25.83 kB / 0.5351 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.4421, allocations: 84.14 kB / 0.5352 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.4421, allocations: 5.031 kB / 0.5352 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.4422, allocations: 11.81 kB / 0.5352 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4423, allocations: 311.8 kB / 0.5355 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.4423, allocations: 1.031 kB / 0.5355 GB, free: 9.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.17e-05/0.4423, allocations: 9.016 kB / 0.5355 GB, free: 9.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.081e-05/0.4424, allocations: 63.52 kB / 0.5356 GB, free: 9.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4424, allocations: 4.062 kB / 0.5356 GB, free: 9.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.894e-05/0.4425, allocations: 57.84 kB / 0.5357 GB, free: 9.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.4425, allocations: 35.98 kB / 0.5357 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4425, allocations: 3.984 kB / 0.5357 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4426, allocations: 1.188 kB / 0.5357 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.444e-06/0.4426, allocations: 3.984 kB / 0.5357 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.4426, allocations: 0 / 0.5357 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.99e-05/0.4426, allocations: 5.25 kB / 0.5357 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.4426, allocations: 1.062 kB / 0.5357 GB, free: 9.523 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 0.0001215/0.4427, allocations: 145.6 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-06/0.4427, allocations: 5.031 kB / 0.5359 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.4428, allocations: 7.125 kB / 0.5359 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.4428, allocations: 0 / 0.5359 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4428, allocations: 4.969 kB / 0.5359 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4428, allocations: 0 / 0.5359 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.914e-05/0.4429, allocations: 148 kB / 0.536 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4429, allocations: 0 / 0.536 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.4429, allocations: 0 / 0.536 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.4429, allocations: 5.031 kB / 0.536 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.4429, allocations: 8 kB / 0.536 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4429, allocations: 1.219 kB / 0.536 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4429, allocations: 0 / 0.536 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.4431, allocations: 90.14 kB / 0.5361 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.4431, allocations: 77.11 kB / 0.5362 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.4431, allocations: 5.062 kB / 0.5362 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-06/0.4431, allocations: 5 kB / 0.5362 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.4432, allocations: 5.188 kB / 0.5362 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.4432, allocations: 3.984 kB / 0.5362 GB, free: 8.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.36e-05/0.4432, allocations: 76.31 kB / 0.5363 GB, free: 8.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.434e-06/0.4432, allocations: 0 / 0.5363 GB, free: 8.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.4436, allocations: 67.53 kB / 0.5363 GB, free: 8.848 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.0004717/0.4441, allocations: 184.6 kB / 0.5365 GB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.4442, allocations: 60.17 kB / 0.5366 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4442, allocations: 0 / 0.5366 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.484e-05/0.4442, allocations: 55.28 kB / 0.5366 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.4444, allocations: 8.688 kB / 0.5366 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001869/0.4446, allocations: 83.48 kB / 0.5367 GB, free: 8.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.4449, allocations: 0.67 MB / 0.5374 GB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.4449, allocations: 0 / 0.5374 GB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.028e-05/0.4449, allocations: 8.625 kB / 0.5374 GB, free: 7.777 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4449, allocations: 0 / 0.5374 GB, free: 7.777 MB / 398.1 MB Notification: Performance of Templates: time 0.004107/0.449, allocations: 1.282 MB / 0.5386 GB, free: 7.117 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches