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.00143/0.00143, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 80.2 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3676, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001932/0.3696, allocations: 494.1 kB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.3723, allocations: 1.611 MB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.3724, allocations: 0 / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.3724, allocations: 1.375 kB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.043e-06/0.3724, allocations: 0 / 0.5337 GB, free: 11.97 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.001007/0.3735, allocations: 271.9 kB / 0.5339 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.3735, allocations: 9.625 kB / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.519e-05/0.3736, allocations: 1.469 kB / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.3736, allocations: 0 / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.034e-05/0.3736, allocations: 1.781 kB / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-06/0.3736, allocations: 0 / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008012/0.3744, allocations: 0.4937 MB / 0.5344 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.3745, allocations: 1.375 kB / 0.5344 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.3745, allocations: 4 kB / 0.5344 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.375, allocations: 308.8 kB / 0.5347 GB, free: 11.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.375, allocations: 0 / 0.5347 GB, free: 11.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.375, allocations: 1.375 kB / 0.5347 GB, free: 11.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3751, allocations: 0 / 0.5347 GB, free: 11.41 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.0004275/0.3755, allocations: 372.2 kB / 0.5351 GB, free: 11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3755, allocations: 9.625 kB / 0.5351 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/0.3756, allocations: 0.9375 kB / 0.5351 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3757, allocations: 160.4 kB / 0.5353 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.3757, allocations: 1.75 kB / 0.5353 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.3757, allocations: 5.75 kB / 0.5353 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.847e-05/0.3758, allocations: 35.38 kB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3758, allocations: 0 / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.3759, allocations: 1.375 kB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.3759, allocations: 0 / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.996e-05/0.3759, allocations: 5.312 kB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.3761, allocations: 147.1 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.331e-05/0.3761, allocations: 15.95 kB / 0.5355 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.3761, allocations: 14.22 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.19e-06/0.3761, allocations: 1.375 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/0.3762, allocations: 61.33 kB / 0.5355 GB, free: 10.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.3762, allocations: 0 / 0.5355 GB, free: 10.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00019/0.3764, allocations: 66.94 kB / 0.5356 GB, free: 10.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.3765, allocations: 78.2 kB / 0.5357 GB, free: 10.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/0.3766, allocations: 93.84 kB / 0.5358 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.3766, allocations: 37.7 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.3766, allocations: 81.23 kB / 0.5359 GB, free: 10.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.3767, allocations: 3.906 kB / 0.5359 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.3767, allocations: 15.88 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3768, allocations: 311.9 kB / 0.5362 GB, free: 9.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.3769, allocations: 1.094 kB / 0.5362 GB, free: 9.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.905e-06/0.3769, allocations: 1.188 kB / 0.5362 GB, free: 9.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.38e-05/0.3769, allocations: 63.52 kB / 0.5363 GB, free: 9.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3769, allocations: 0 / 0.5363 GB, free: 9.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.789e-05/0.377, allocations: 70.7 kB / 0.5363 GB, free: 9.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.3771, allocations: 34.98 kB / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3771, allocations: 0 / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3771, allocations: 1.125 kB / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.3771, allocations: 0 / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3771, allocations: 1.062 kB / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.3772, allocations: 4 kB / 0.5364 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3772, allocations: 1.031 kB / 0.5364 GB, free: 9.539 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.0001593/0.3773, allocations: 145.7 kB / 0.5365 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.3774, allocations: 9.016 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.086e-05/0.3774, allocations: 3.125 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3774, allocations: 1.094 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3774, allocations: 0 / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3774, allocations: 1.094 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.856e-05/0.3775, allocations: 142.6 kB / 0.5366 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3775, allocations: 3.984 kB / 0.5367 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-06/0.3775, allocations: 5.062 kB / 0.5367 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3775, allocations: 7.938 kB / 0.5367 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3775, allocations: 1.031 kB / 0.5367 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.3775, allocations: 0 / 0.5367 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3775, allocations: 1.156 kB / 0.5367 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.3777, allocations: 97.84 kB / 0.5368 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.3777, allocations: 77.11 kB / 0.5368 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.3777, allocations: 4.906 kB / 0.5368 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.3777, allocations: 9.5 kB / 0.5368 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.3778, allocations: 0 / 0.5368 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3778, allocations: 1.281 kB / 0.5368 GB, free: 8.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.992e-05/0.3778, allocations: 79.22 kB / 0.5369 GB, free: 8.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3778, allocations: 0 / 0.5369 GB, free: 8.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.3782, allocations: 64.67 kB / 0.537 GB, free: 8.863 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.0005351/0.3788, allocations: 186.2 kB / 0.5372 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.934e-05/0.3789, allocations: 65.75 kB / 0.5372 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3789, allocations: 0 / 0.5372 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.3789, allocations: 61.83 kB / 0.5373 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.3791, allocations: 4.781 kB / 0.5373 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002106/0.3793, allocations: 101.2 kB / 0.5374 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3796, allocations: 0.6704 MB / 0.538 GB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.3796, allocations: 8.75 kB / 0.538 GB, free: 7.762 MB / 398.1 MB Notification: Performance of SimCode: time 5.62e-07/0.3796, allocations: 0 / 0.538 GB, free: 7.762 MB / 398.1 MB Notification: Performance of Templates: time 0.003717/0.3833, allocations: 1.283 MB / 0.5393 GB, free: 7.121 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches