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.001086/0.001086, allocations: 117.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.253/0.253, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 71.89 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4314, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001678/0.4331, allocations: 484.8 kB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.4364, allocations: 2.133 MB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.4364, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.4365, allocations: 1.156 kB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.145e-05/0.4365, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.4377, allocations: 398.8 kB / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.196e-05/0.4378, allocations: 10.27 kB / 0.5339 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.4378, allocations: 5.125 kB / 0.5339 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.778e-05/0.4379, allocations: 5.141 kB / 0.5339 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01595/0.4538, allocations: 3.353 MB / 0.5372 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.4539, allocations: 4 kB / 0.5372 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.454, allocations: 4.594 kB / 0.5372 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.54e-05/0.454, allocations: 3.984 kB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.006e-05/0.4541, allocations: 1.406 kB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.4543, allocations: 8.781 kB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.4543, allocations: 0 / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4543, allocations: 0 / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.4543, allocations: 1.125 kB / 0.5372 GB, free: 10.04 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.0003595/0.4547, allocations: 316.5 kB / 0.5375 GB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.4547, allocations: 9 kB / 0.5375 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.455, allocations: 90.36 kB / 0.5376 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.4552, allocations: 235.7 kB / 0.5378 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.922e-05/0.4552, allocations: 160.1 kB / 0.538 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.4553, allocations: 158.6 kB / 0.5381 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.248e-05/0.4554, allocations: 102.4 kB / 0.5382 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.4554, allocations: 79.28 kB / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.4555, allocations: 155.5 kB / 0.5385 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.313e-05/0.4555, allocations: 150.6 kB / 0.5386 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.907e-05/0.4556, allocations: 151.7 kB / 0.5388 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002751/0.4559, allocations: 446.9 kB / 0.5392 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.767e-05/0.456, allocations: 174 kB / 0.5393 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.843e-05/0.456, allocations: 85.05 kB / 0.5394 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.4561, allocations: 75.28 kB / 0.5395 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.757e-05/0.4561, allocations: 106.8 kB / 0.5396 GB, free: 7.453 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.4561, allocations: 0.9375 kB / 0.5396 GB, free: 7.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.818e-05/0.4562, allocations: 38.89 kB / 0.5396 GB, free: 7.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/0.4563, allocations: 179.3 kB / 0.5398 GB, free: 7.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.4565, allocations: 94.62 kB / 0.5399 GB, free: 7.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.4565, allocations: 26.83 kB / 0.5399 GB, free: 7.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.387e-05/0.4565, allocations: 80.14 kB / 0.54 GB, free: 6.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.4565, allocations: 1.375 kB / 0.54 GB, free: 6.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/0.4566, allocations: 14.88 kB / 0.54 GB, free: 6.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4567, allocations: 320.2 kB / 0.5403 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-06/0.4567, allocations: 0 / 0.5403 GB, free: 6.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-05/0.4567, allocations: 11.41 kB / 0.5403 GB, free: 6.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.257e-05/0.4568, allocations: 76.28 kB / 0.5404 GB, free: 6.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/0.4568, allocations: 76.47 kB / 0.5405 GB, free: 6.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.597e-05/0.4569, allocations: 35.58 kB / 0.5405 GB, free: 6.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.547e-05/0.4569, allocations: 84.83 kB / 0.5406 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/0.457, allocations: 80.66 kB / 0.5407 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.306e-05/0.457, allocations: 150.6 kB / 0.5408 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.028e-05/0.4571, allocations: 80.44 kB / 0.5409 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-05/0.4571, allocations: 155.9 kB / 0.541 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.715e-05/0.4572, allocations: 88.81 kB / 0.5411 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.4573, allocations: 76.75 kB / 0.5412 GB, free: 5.758 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.0001262/0.4574, allocations: 265.8 kB / 0.5414 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.4575, allocations: 107.4 kB / 0.5416 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.4575, allocations: 111.8 kB / 0.5417 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.619e-05/0.4576, allocations: 185.7 kB / 0.5418 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.313e-05/0.4577, allocations: 185.8 kB / 0.542 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.958e-05/0.4578, allocations: 180.3 kB / 0.5422 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.458, allocations: 403.5 kB / 0.5426 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.634e-05/0.4581, allocations: 104.9 kB / 0.5427 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.4581, allocations: 106.3 kB / 0.5428 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.095e-05/0.4582, allocations: 185.4 kB / 0.5429 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-05/0.4583, allocations: 177.8 kB / 0.5431 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.657e-05/0.4583, allocations: 180.3 kB / 0.5433 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.996e-05/0.4584, allocations: 181.6 kB / 0.5435 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.4586, allocations: 311.8 kB / 0.5438 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/0.4586, allocations: 179.4 kB / 0.5439 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.4587, allocations: 185.5 kB / 0.5441 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.4588, allocations: 106.4 kB / 0.5442 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.4589, allocations: 185.5 kB / 0.5444 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.4589, allocations: 106.4 kB / 0.5445 GB, free: 2.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.771e-05/0.459, allocations: 76.75 kB / 0.5446 GB, free: 2.113 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.459, allocations: 0 / 0.5446 GB, free: 2.113 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002537/0.4593, allocations: 1.688 kB / 0.5446 GB, free: 2.113 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.000115/0.4594, allocations: 170.5 kB / 0.5447 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.914e-05/0.4594, allocations: 5.406 kB / 0.5447 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4594, allocations: 0 / 0.5447 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.112e-06/0.4594, allocations: 0 / 0.5447 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.4598, allocations: 470.3 kB / 0.5452 GB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002145/0.46, allocations: 154 kB / 0.5453 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.4603, allocations: 0.669 MB / 0.546 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.609e-05/0.4603, allocations: 5.422 kB / 0.546 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.226e-05/0.4603, allocations: 7.438 kB / 0.546 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4604, allocations: 0 / 0.546 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of Templates: time 0.002489/0.4628, allocations: 295.9 kB / 0.5463 GB, free: 456 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