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: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001216, allocations: 121.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001343, allocations: 200.6 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.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 79.88 kB / 480.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3199, allocations: 62.43 MB / 0.5305 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001708/0.3217, allocations: 488.2 kB / 0.5309 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003544/0.3252, allocations: 2.136 MB / 0.533 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.3253, allocations: 0 / 0.533 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.3253, allocations: 0 / 0.533 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.552e-05/0.3254, allocations: 0 / 0.533 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.3268, allocations: 405.5 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.039e-05/0.3268, allocations: 2.75 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.3269, allocations: 5.375 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.3269, allocations: 1.375 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0166/0.3435, allocations: 3.357 MB / 0.5367 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.3435, allocations: 0 / 0.5367 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.3436, allocations: 12 kB / 0.5367 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.35e-05/0.3437, allocations: 1.469 kB / 0.5367 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.3437, allocations: 1.281 kB / 0.5367 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.3439, allocations: 12.25 kB / 0.5367 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3439, allocations: 0 / 0.5367 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3439, allocations: 0 / 0.5367 GB, free: 9.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3439, allocations: 1.344 kB / 0.5367 GB, free: 9.746 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.0003936/0.3443, allocations: 315.8 kB / 0.537 GB, free: 9.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3444, allocations: 10.16 kB / 0.537 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.239e-05/0.3445, allocations: 106 kB / 0.5371 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.3447, allocations: 89.8 kB / 0.5372 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.3449, allocations: 240.8 kB / 0.5375 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.337e-05/0.345, allocations: 158.9 kB / 0.5376 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.032e-05/0.3451, allocations: 155.9 kB / 0.5378 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.396e-05/0.3452, allocations: 105 kB / 0.5379 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.294e-05/0.3452, allocations: 83.28 kB / 0.5379 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.08e-05/0.3453, allocations: 156.5 kB / 0.5381 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.256e-05/0.3454, allocations: 150.6 kB / 0.5382 GB, free: 8.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.934e-05/0.3455, allocations: 154.5 kB / 0.5384 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003616/0.3458, allocations: 443.4 kB / 0.5388 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.346, allocations: 174.4 kB / 0.539 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.94e-05/0.346, allocations: 80.14 kB / 0.539 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.3461, allocations: 76.66 kB / 0.5391 GB, free: 7.156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.173e-05/0.3462, allocations: 111.6 kB / 0.5392 GB, free: 7.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.402e-06/0.3462, allocations: 0 / 0.5392 GB, free: 7.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 9.205e-05/0.3463, allocations: 33.64 kB / 0.5393 GB, free: 7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.3464, allocations: 183.4 kB / 0.5394 GB, free: 6.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3465, allocations: 91.42 kB / 0.5395 GB, free: 6.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3465, allocations: 25.7 kB / 0.5395 GB, free: 6.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.3465, allocations: 81.33 kB / 0.5396 GB, free: 6.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-06/0.3466, allocations: 3.938 kB / 0.5396 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.3466, allocations: 12.66 kB / 0.5396 GB, free: 6.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3467, allocations: 315 kB / 0.5399 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.51e-06/0.3467, allocations: 1.75 kB / 0.5399 GB, free: 6.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.014e-05/0.3468, allocations: 15.58 kB / 0.54 GB, free: 6.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.215e-05/0.3468, allocations: 79.28 kB / 0.54 GB, free: 6.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.677e-05/0.3468, allocations: 75.28 kB / 0.5401 GB, free: 6.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.603e-05/0.3469, allocations: 36.64 kB / 0.5401 GB, free: 6.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.3469, allocations: 81.25 kB / 0.5402 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.347, allocations: 79.31 kB / 0.5403 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.868e-05/0.3471, allocations: 155.6 kB / 0.5404 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.165e-05/0.3471, allocations: 76.62 kB / 0.5405 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.592e-05/0.3471, allocations: 155.8 kB / 0.5407 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.3473, allocations: 81.25 kB / 0.5407 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.3473, allocations: 83.27 kB / 0.5408 GB, free: 5.348 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.0001299/0.3474, allocations: 270.5 kB / 0.5411 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.3476, allocations: 106.1 kB / 0.5412 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.3476, allocations: 109.2 kB / 0.5413 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001566/0.3478, allocations: 185.7 kB / 0.5415 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.826e-05/0.3478, allocations: 184.2 kB / 0.5416 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.237e-05/0.3479, allocations: 185.4 kB / 0.5418 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.3481, allocations: 407.3 kB / 0.5422 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-05/0.3482, allocations: 102.1 kB / 0.5423 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.223e-05/0.3482, allocations: 105 kB / 0.5424 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.025e-05/0.3483, allocations: 181.3 kB / 0.5426 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.3484, allocations: 181.3 kB / 0.5427 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.069e-05/0.3484, allocations: 185.5 kB / 0.5429 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-05/0.3485, allocations: 181.3 kB / 0.5431 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.3486, allocations: 308.6 kB / 0.5434 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.845e-05/0.3487, allocations: 178.1 kB / 0.5436 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.3488, allocations: 194.5 kB / 0.5437 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.656e-05/0.3489, allocations: 102.1 kB / 0.5438 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.349, allocations: 181.3 kB / 0.544 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.349, allocations: 102.1 kB / 0.5441 GB, free: 1.777 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.839e-05/0.3491, allocations: 80.31 kB / 0.5442 GB, free: 1.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3491, allocations: 0 / 0.5442 GB, free: 1.699 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.3494, allocations: 2.438 kB / 0.5442 GB, free: 1.699 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.0003988/0.3498, allocations: 0.8116 MB / 0.545 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.141e-05/0.3498, allocations: 1.938 kB / 0.545 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3498, allocations: 3.938 kB / 0.545 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.3498, allocations: 0 / 0.545 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3502, allocations: 462.3 kB / 0.5454 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/0.3506, allocations: 184.6 kB / 0.5456 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.3509, allocations: 0.6699 MB / 0.5463 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.936e-05/0.351, allocations: 0 / 0.5463 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/0.351, allocations: 8.5 kB / 0.5463 GB, free: 15.5 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.351, allocations: 4 kB / 0.5463 GB, free: 15.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.3726, allocations: 1.016 MB / 0.5473 GB, free: 14.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.955, allocations: 3.312 kB / 0.5473 GB, free: 14.88 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > 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