Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001073, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2083/0.2083, allocations: 46.1 MB / 345 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 71.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3553, allocations: 62.45 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001427/0.3567, allocations: 488 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.3596, allocations: 2.131 MB / 0.5342 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.916e-05/0.3597, allocations: 0 / 0.5342 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.3597, allocations: 0 / 0.5342 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.991e-05/0.3597, allocations: 4 kB / 0.5342 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.3608, allocations: 391.4 kB / 0.5346 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.579e-05/0.3608, allocations: 9.297 kB / 0.5346 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.3609, allocations: 9.375 kB / 0.5346 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.3609, allocations: 1.375 kB / 0.5346 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01461/0.3755, allocations: 3.357 MB / 0.5379 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.3756, allocations: 0 / 0.5379 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-05/0.3756, allocations: 4.5 kB / 0.5379 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.3757, allocations: 1.344 kB / 0.5379 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.3757, allocations: 0 / 0.5379 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.3758, allocations: 12.66 kB / 0.5379 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.3759, allocations: 5.375 kB / 0.5379 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3759, allocations: 0 / 0.5379 GB, free: 10.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.3759, allocations: 0 / 0.5379 GB, free: 10.02 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003012/0.3762, allocations: 312 kB / 0.5382 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3762, allocations: 9.938 kB / 0.5382 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.3764, allocations: 85.77 kB / 0.5383 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.3766, allocations: 236.8 kB / 0.5385 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/0.3767, allocations: 154.9 kB / 0.5386 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.3767, allocations: 160.2 kB / 0.5388 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.451e-05/0.3768, allocations: 108.9 kB / 0.5389 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.3768, allocations: 75.28 kB / 0.539 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.3769, allocations: 160.1 kB / 0.5391 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.983e-05/0.377, allocations: 150.6 kB / 0.5393 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.08e-05/0.377, allocations: 152.1 kB / 0.5394 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002836/0.3773, allocations: 446 kB / 0.5398 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.989e-05/0.3774, allocations: 170.2 kB / 0.54 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.3775, allocations: 85.17 kB / 0.5401 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.3775, allocations: 75.28 kB / 0.5402 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/0.3776, allocations: 110.7 kB / 0.5403 GB, free: 7.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.3776, allocations: 1.156 kB / 0.5403 GB, free: 7.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.869e-05/0.3777, allocations: 34.52 kB / 0.5403 GB, free: 7.395 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.3777, allocations: 187.2 kB / 0.5405 GB, free: 7.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3779, allocations: 94.83 kB / 0.5406 GB, free: 7.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.3779, allocations: 26.77 kB / 0.5406 GB, free: 7.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.081e-05/0.3779, allocations: 80.14 kB / 0.5407 GB, free: 6.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-06/0.3779, allocations: 5.344 kB / 0.5407 GB, free: 6.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.568e-05/0.378, allocations: 11.84 kB / 0.5407 GB, free: 6.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3781, allocations: 310.8 kB / 0.541 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-06/0.3781, allocations: 1.156 kB / 0.541 GB, free: 6.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.652e-05/0.3781, allocations: 14.78 kB / 0.541 GB, free: 6.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.735e-05/0.3781, allocations: 76.47 kB / 0.5411 GB, free: 6.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.592e-05/0.3782, allocations: 79.27 kB / 0.5411 GB, free: 6.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.554e-05/0.3782, allocations: 36.77 kB / 0.5412 GB, free: 6.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/0.3783, allocations: 81.44 kB / 0.5413 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/0.3783, allocations: 79.22 kB / 0.5413 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.002e-05/0.3784, allocations: 151.9 kB / 0.5415 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.593e-05/0.3784, allocations: 80.72 kB / 0.5416 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.309e-05/0.3785, allocations: 154.5 kB / 0.5417 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.436e-05/0.3786, allocations: 84.66 kB / 0.5418 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.3786, allocations: 84.7 kB / 0.5419 GB, free: 5.734 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001147/0.3787, allocations: 259 kB / 0.5421 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.191e-05/0.3788, allocations: 106.4 kB / 0.5422 GB, free: 5.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.3788, allocations: 113.3 kB / 0.5423 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.927e-05/0.3789, allocations: 176.3 kB / 0.5425 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.459e-05/0.379, allocations: 193.9 kB / 0.5427 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.164e-05/0.3791, allocations: 185.7 kB / 0.5429 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.3793, allocations: 398.8 kB / 0.5432 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.38e-05/0.3793, allocations: 112.9 kB / 0.5433 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-05/0.3794, allocations: 102.5 kB / 0.5434 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.433e-05/0.3794, allocations: 184.3 kB / 0.5436 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/0.3795, allocations: 181.4 kB / 0.5438 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.078e-05/0.3796, allocations: 177.4 kB / 0.544 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.564e-05/0.3796, allocations: 181.6 kB / 0.5441 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.3798, allocations: 316.4 kB / 0.5444 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.3799, allocations: 178.1 kB / 0.5446 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/0.3799, allocations: 182.8 kB / 0.5448 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.847e-05/0.38, allocations: 110.2 kB / 0.5449 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.927e-05/0.3801, allocations: 182.3 kB / 0.5451 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.3801, allocations: 104.9 kB / 0.5452 GB, free: 2.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.474e-05/0.3802, allocations: 80.69 kB / 0.5452 GB, free: 2.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3802, allocations: 0 / 0.5452 GB, free: 2.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3805, allocations: 1.344 kB / 0.5452 GB, free: 2.09 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001222/0.3806, allocations: 170.4 kB / 0.5454 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.632e-05/0.3806, allocations: 5.719 kB / 0.5454 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3806, allocations: 0 / 0.5454 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.352e-06/0.3807, allocations: 0 / 0.5454 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.381, allocations: 471 kB / 0.5458 GB, free: 1.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002139/0.3812, allocations: 177.9 kB / 0.546 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.3815, allocations: 0.6742 MB / 0.5467 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.3815, allocations: 8.625 kB / 0.5467 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3815, allocations: 0 / 0.5467 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of Templates: time 0.001603/0.3831, allocations: 357.3 kB / 0.547 GB, free: 392 kB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches