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.001383/0.001384, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 201.2 kB / 18.73 MB, free: 4.32 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 / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2278/0.2278, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 75.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4823/0.4837, allocations: 62.45 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001837/0.4856, allocations: 490.7 kB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003806/0.4895, allocations: 2.125 MB / 0.5335 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.285e-05/0.4895, allocations: 4 kB / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.19e-05/0.4896, allocations: 0 / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.267e-05/0.4896, allocations: 0 / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.491, allocations: 398.6 kB / 0.5339 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.892e-05/0.491, allocations: 6.109 kB / 0.5339 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.015e-05/0.4911, allocations: 9.922 kB / 0.5339 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.296e-05/0.4911, allocations: 1.156 kB / 0.5339 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01556/0.5067, allocations: 3.352 MB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.5068, allocations: 0.9062 kB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.507, allocations: 4.031 kB / 0.5372 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.684e-05/0.507, allocations: 7.922 kB / 0.5372 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.287e-05/0.507, allocations: 1.469 kB / 0.5372 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.5072, allocations: 8.125 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5072, allocations: 1.156 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5073, allocations: 4 kB / 0.5372 GB, free: 10.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.5073, allocations: 0 / 0.5372 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.000396/0.5077, allocations: 313.1 kB / 0.5375 GB, free: 9.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.5077, allocations: 9.219 kB / 0.5375 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000274/0.508, allocations: 89.55 kB / 0.5376 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.5082, allocations: 236.8 kB / 0.5378 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.285e-05/0.5083, allocations: 154.9 kB / 0.538 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.5083, allocations: 160.1 kB / 0.5381 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.346e-05/0.5084, allocations: 101 kB / 0.5382 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.859e-05/0.5085, allocations: 76.88 kB / 0.5383 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.988e-05/0.5086, allocations: 154.6 kB / 0.5385 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.616e-05/0.5086, allocations: 154.5 kB / 0.5386 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.454e-05/0.5087, allocations: 156 kB / 0.5387 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.509, allocations: 447.2 kB / 0.5392 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.337e-05/0.5091, allocations: 165.1 kB / 0.5393 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.231e-05/0.5092, allocations: 85.64 kB / 0.5394 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.5092, allocations: 79.28 kB / 0.5395 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/0.5093, allocations: 115.2 kB / 0.5396 GB, free: 7.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.623e-06/0.5093, allocations: 0 / 0.5396 GB, free: 7.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.95e-05/0.5094, allocations: 26.7 kB / 0.5396 GB, free: 7.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.59e-05/0.5095, allocations: 183.5 kB / 0.5398 GB, free: 7.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.5096, allocations: 91.48 kB / 0.5399 GB, free: 7.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.5096, allocations: 25.83 kB / 0.5399 GB, free: 7.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.5097, allocations: 85.39 kB / 0.54 GB, free: 6.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.512e-06/0.5097, allocations: 0 / 0.54 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.5097, allocations: 20.28 kB / 0.54 GB, free: 6.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5099, allocations: 310.8 kB / 0.5403 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.342e-06/0.5099, allocations: 0 / 0.5403 GB, free: 6.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.124e-05/0.5099, allocations: 16.5 kB / 0.5403 GB, free: 6.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.066e-05/0.51, allocations: 76.66 kB / 0.5404 GB, free: 6.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.233e-05/0.51, allocations: 79.31 kB / 0.5405 GB, free: 6.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.246e-05/0.5101, allocations: 36.53 kB / 0.5405 GB, free: 6.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/0.5101, allocations: 80.66 kB / 0.5406 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-05/0.5102, allocations: 75.28 kB / 0.5407 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.047e-05/0.5102, allocations: 155.7 kB / 0.5408 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.287e-05/0.5103, allocations: 80.78 kB / 0.5409 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.599e-05/0.5103, allocations: 162.5 kB / 0.541 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.891e-05/0.5104, allocations: 82 kB / 0.5411 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.5105, allocations: 75.28 kB / 0.5412 GB, free: 5.746 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.000133/0.5106, allocations: 267.1 kB / 0.5414 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.609e-05/0.5107, allocations: 106.5 kB / 0.5415 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.875e-05/0.5107, allocations: 113 kB / 0.5417 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.26e-05/0.5108, allocations: 185.9 kB / 0.5418 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.879e-05/0.5109, allocations: 184.2 kB / 0.542 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.453e-05/0.511, allocations: 181.8 kB / 0.5422 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.5112, allocations: 406.2 kB / 0.5426 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.789e-05/0.5113, allocations: 102.6 kB / 0.5427 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.607e-05/0.5113, allocations: 112.9 kB / 0.5428 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.269e-05/0.5114, allocations: 181.8 kB / 0.5429 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.5115, allocations: 181.4 kB / 0.5431 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-05/0.5115, allocations: 176.3 kB / 0.5433 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-05/0.5116, allocations: 177.8 kB / 0.5435 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.5118, allocations: 316.2 kB / 0.5438 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.852e-05/0.5119, allocations: 183.6 kB / 0.5439 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.029e-05/0.512, allocations: 181.7 kB / 0.5441 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.512, allocations: 110.2 kB / 0.5442 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.5121, allocations: 181.9 kB / 0.5444 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.5122, allocations: 105 kB / 0.5445 GB, free: 2.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.5122, allocations: 76.66 kB / 0.5446 GB, free: 2.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5122, allocations: 0 / 0.5446 GB, free: 2.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.5125, allocations: 2.812 kB / 0.5446 GB, free: 2.098 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.0001395/0.5126, allocations: 164.6 kB / 0.5447 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.094e-05/0.5127, allocations: 10.5 kB / 0.5447 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5127, allocations: 0 / 0.5447 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.113e-06/0.5127, allocations: 4.094 kB / 0.5447 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.5131, allocations: 474.2 kB / 0.5452 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002256/0.5133, allocations: 157.9 kB / 0.5453 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.5136, allocations: 0.6702 MB / 0.546 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.491e-05/0.5137, allocations: 0 / 0.546 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.411e-05/0.5137, allocations: 8.781 kB / 0.546 GB, free: 0.582 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5137, allocations: 4 kB / 0.546 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of Templates: time 0.002536/0.5162, allocations: 300.2 kB / 0.5463 GB, free: 428 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