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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 226.7 MB / 245.5 MB, free: 6.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 98.89 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3914/0.3914, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 59.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3247, allocations: 62.01 MB / 0.5151 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001447/0.3262, allocations: 0.5572 MB / 0.5157 GB, free: 37.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.3277, allocations: 1.599 MB / 0.5172 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.03e-05/0.3277, allocations: 4 kB / 0.5173 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.311e-05/0.3277, allocations: 2.781 kB / 0.5173 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.428e-06/0.3277, allocations: 3.938 kB / 0.5173 GB, free: 36.29 MB / 378.7 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.0006171/0.3284, allocations: 243.9 kB / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.692e-05/0.3284, allocations: 0 / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.3284, allocations: 6.281 kB / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.35e-05/0.3284, allocations: 0 / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.772e-05/0.3285, allocations: 4 kB / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.489e-06/0.3285, allocations: 0 / 0.5175 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004838/0.329, allocations: 494.9 kB / 0.518 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.329, allocations: 3.984 kB / 0.518 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.474e-05/0.329, allocations: 3.938 kB / 0.518 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.3293, allocations: 312.1 kB / 0.5183 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3293, allocations: 0 / 0.5183 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.3293, allocations: 0 / 0.5183 GB, free: 36.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.3294, allocations: 4 kB / 0.5183 GB, free: 36.04 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.0002628/0.3296, allocations: 376.1 kB / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3297, allocations: 8.562 kB / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.3297, allocations: 0.9375 kB / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.438e-05/0.3298, allocations: 160.4 kB / 0.5188 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.3298, allocations: 6.75 kB / 0.5188 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-06/0.3298, allocations: 4.312 kB / 0.5188 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.111e-05/0.3299, allocations: 32.98 kB / 0.5188 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3299, allocations: 4 kB / 0.5188 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.3299, allocations: 0 / 0.5188 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3299, allocations: 0 / 0.5188 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.535e-05/0.3299, allocations: 3.938 kB / 0.5189 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.12e-05/0.33, allocations: 153 kB / 0.519 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.246e-05/0.3301, allocations: 18.58 kB / 0.519 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.3301, allocations: 8.203 kB / 0.519 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.493e-06/0.3301, allocations: 0 / 0.519 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3301, allocations: 64.2 kB / 0.5191 GB, free: 35.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.3301, allocations: 0 / 0.5191 GB, free: 35.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001492/0.3303, allocations: 71.41 kB / 0.5192 GB, free: 35.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.3303, allocations: 77.11 kB / 0.5192 GB, free: 34.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.102e-05/0.3303, allocations: 89.86 kB / 0.5193 GB, free: 34.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-06/0.3304, allocations: 25.7 kB / 0.5193 GB, free: 34.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.146e-05/0.3304, allocations: 83.11 kB / 0.5194 GB, free: 34.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.3304, allocations: 128 / 0.5194 GB, free: 34.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.3304, allocations: 16.38 kB / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.35e-05/0.3305, allocations: 314.1 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.857e-06/0.3305, allocations: 0 / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.3305, allocations: 6.953 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.381e-05/0.3305, allocations: 59.27 kB / 0.5198 GB, free: 34.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3305, allocations: 3.938 kB / 0.5198 GB, free: 34.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.96e-05/0.3306, allocations: 60.45 kB / 0.5199 GB, free: 34.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3306, allocations: 43.2 kB / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.3306, allocations: 0 / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.3307, allocations: 0 / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.3307, allocations: 2.844 kB / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3307, allocations: 0 / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.307e-05/0.3307, allocations: 0 / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.3307, allocations: 4 kB / 0.5199 GB, free: 34.19 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 5.333e-05/0.3308, allocations: 141.8 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-06/0.3308, allocations: 3.938 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-06/0.3308, allocations: 9.781 kB / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3308, allocations: 0 / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3308, allocations: 0 / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.3308, allocations: 0 / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.096e-05/0.3309, allocations: 147.7 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3309, allocations: 0 / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.3309, allocations: 0 / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3309, allocations: 3.938 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.3309, allocations: 3.938 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3309, allocations: 2.844 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3309, allocations: 3.938 kB / 0.5202 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.3311, allocations: 0.6414 MB / 0.5208 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.3311, allocations: 83.89 kB / 0.5209 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.3311, allocations: 0 / 0.5209 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.3311, allocations: 0 / 0.5209 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.3312, allocations: 0 / 0.5209 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-06/0.3312, allocations: 6.875 kB / 0.5209 GB, free: 33.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.195e-05/0.3312, allocations: 75.28 kB / 0.521 GB, free: 32.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3312, allocations: 0 / 0.521 GB, free: 32.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004178/0.3316, allocations: 66.55 kB / 0.5211 GB, free: 32.95 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.0003725/0.332, allocations: 187 kB / 0.5212 GB, free: 32.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.565e-05/0.3321, allocations: 68.27 kB / 0.5213 GB, free: 32.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3321, allocations: 0 / 0.5213 GB, free: 32.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.774e-05/0.3321, allocations: 53.97 kB / 0.5213 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001113/0.3322, allocations: 6.125 kB / 0.5214 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001501/0.3324, allocations: 184.9 kB / 0.5215 GB, free: 32.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.085e-05/0.3325, allocations: 0.6692 MB / 0.5222 GB, free: 31.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.551e-06/0.3325, allocations: 4 kB / 0.5222 GB, free: 31.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-06/0.3325, allocations: 14.06 kB / 0.5222 GB, free: 31.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3325, allocations: 0 / 0.5222 GB, free: 31.79 MB / 378.7 MB Notification: Performance of Templates: time 0.002951/0.3355, allocations: 1.277 MB / 0.5235 GB, free: 31.68 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@2/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