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.001272/0.001272, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 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.2333/0.2333, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4341, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001712/0.4359, allocations: 490.3 kB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003472/0.4394, allocations: 2.129 MB / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.141e-05/0.4394, allocations: 1.344 kB / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.023e-05/0.4395, allocations: 0 / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.105e-05/0.4395, allocations: 0 / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.4408, allocations: 398 kB / 0.5339 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.197e-05/0.4409, allocations: 2.5 kB / 0.5339 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.902e-05/0.4409, allocations: 9.203 kB / 0.5339 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.998e-05/0.441, allocations: 5.359 kB / 0.5339 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01546/0.4564, allocations: 3.361 MB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.4566, allocations: 0 / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.4567, allocations: 4.688 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.514e-05/0.4567, allocations: 7.984 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.4567, allocations: 2.062 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.4569, allocations: 8.438 kB / 0.5372 GB, free: 10.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4569, allocations: 0 / 0.5372 GB, free: 10.01 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.688e-06/0.4569, allocations: 3.984 kB / 0.5372 GB, free: 10.01 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.4569, allocations: 1.125 kB / 0.5372 GB, free: 10.01 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.0003861/0.4573, allocations: 311.6 kB / 0.5375 GB, free: 9.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4574, allocations: 9.781 kB / 0.5375 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002401/0.4576, allocations: 85.7 kB / 0.5376 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.4578, allocations: 236.6 kB / 0.5378 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.4579, allocations: 160 kB / 0.538 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.027e-05/0.4579, allocations: 158.6 kB / 0.5381 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.275e-05/0.458, allocations: 102.1 kB / 0.5382 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.9e-05/0.458, allocations: 75.28 kB / 0.5383 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.4581, allocations: 155.7 kB / 0.5385 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.338e-05/0.4582, allocations: 154.6 kB / 0.5386 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.562e-05/0.4583, allocations: 163.6 kB / 0.5388 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003592/0.4586, allocations: 439.1 kB / 0.5392 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.4587, allocations: 170.2 kB / 0.5393 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.4588, allocations: 92.08 kB / 0.5394 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.4588, allocations: 76.31 kB / 0.5395 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.4589, allocations: 106.9 kB / 0.5396 GB, free: 7.422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.4589, allocations: 0 / 0.5396 GB, free: 7.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.513e-05/0.459, allocations: 30.67 kB / 0.5396 GB, free: 7.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/0.4591, allocations: 183 kB / 0.5398 GB, free: 7.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.4592, allocations: 96.11 kB / 0.5399 GB, free: 7.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.4593, allocations: 25.7 kB / 0.5399 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.4593, allocations: 85.27 kB / 0.54 GB, free: 6.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-06/0.4593, allocations: 0 / 0.54 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.4593, allocations: 11.97 kB / 0.54 GB, free: 6.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4595, allocations: 312 kB / 0.5403 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-06/0.4595, allocations: 0 / 0.5403 GB, free: 6.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.183e-05/0.4595, allocations: 12.09 kB / 0.5403 GB, free: 6.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.053e-05/0.4596, allocations: 79.31 kB / 0.5404 GB, free: 6.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.81e-05/0.4596, allocations: 76.34 kB / 0.5405 GB, free: 6.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.463e-05/0.4597, allocations: 39.62 kB / 0.5405 GB, free: 6.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.368e-05/0.4598, allocations: 80.62 kB / 0.5406 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.45e-05/0.4598, allocations: 76.34 kB / 0.5407 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.525e-05/0.4599, allocations: 155.6 kB / 0.5408 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.46, allocations: 84.19 kB / 0.5409 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.761e-05/0.46, allocations: 159.7 kB / 0.541 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.4601, allocations: 80.28 kB / 0.5411 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.4602, allocations: 76.31 kB / 0.5412 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.0001748/0.4604, allocations: 266.6 kB / 0.5414 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.111e-05/0.4604, allocations: 107 kB / 0.5415 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.4605, allocations: 116.8 kB / 0.5417 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001038/0.4606, allocations: 177.4 kB / 0.5418 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001091/0.4607, allocations: 189.3 kB / 0.542 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.161e-05/0.4608, allocations: 181.3 kB / 0.5422 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.4611, allocations: 402.3 kB / 0.5426 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.47e-05/0.4612, allocations: 110 kB / 0.5427 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.651e-05/0.4613, allocations: 106 kB / 0.5428 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.4614, allocations: 181.3 kB / 0.5429 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/0.4615, allocations: 177.3 kB / 0.5431 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.845e-05/0.4616, allocations: 181.4 kB / 0.5433 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.921e-05/0.4617, allocations: 185.4 kB / 0.5435 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.4619, allocations: 312.1 kB / 0.5438 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.462, allocations: 178.1 kB / 0.5439 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.15e-05/0.4621, allocations: 190.5 kB / 0.5441 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.4622, allocations: 106.1 kB / 0.5442 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.144e-05/0.4623, allocations: 181.4 kB / 0.5444 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.4624, allocations: 106.1 kB / 0.5445 GB, free: 2.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.604e-05/0.4624, allocations: 76.19 kB / 0.5446 GB, free: 2.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4624, allocations: 0 / 0.5446 GB, free: 2.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.4628, allocations: 2.219 kB / 0.5446 GB, free: 2.086 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.0001682/0.4629, allocations: 166.3 kB / 0.5447 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.43e-05/0.463, allocations: 9.188 kB / 0.5447 GB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.463, allocations: 4.094 kB / 0.5447 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.133e-06/0.463, allocations: 1.062 kB / 0.5447 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.4634, allocations: 465.1 kB / 0.5452 GB, free: 1.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.4637, allocations: 158.2 kB / 0.5453 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.464, allocations: 0.6706 MB / 0.546 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.159e-05/0.464, allocations: 8 kB / 0.546 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.464, allocations: 8.969 kB / 0.546 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.464, allocations: 0 / 0.546 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of Templates: time 0.00254/0.4666, allocations: 299.1 kB / 0.5463 GB, free: 420 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches