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.001375/0.001375, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.001401, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2315/0.2315, allocations: 46.12 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 83.84 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3186, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001458/0.3201, allocations: 482.4 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003018/0.3231, allocations: 2.132 MB / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.515e-05/0.3231, allocations: 0 / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.3232, allocations: 0 / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.539e-05/0.3232, allocations: 6.344 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3243, allocations: 392.2 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.69e-05/0.3243, allocations: 10.69 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.059e-05/0.3243, allocations: 1.375 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.683e-05/0.3244, allocations: 5.359 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02076/0.3451, allocations: 3.355 MB / 0.5368 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.3452, allocations: 0 / 0.5368 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.3453, allocations: 12.73 kB / 0.5368 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-06/0.3453, allocations: 0 / 0.5368 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.033e-05/0.3453, allocations: 1.156 kB / 0.5368 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3454, allocations: 12.39 kB / 0.5368 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3454, allocations: 1.094 kB / 0.5369 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3454, allocations: 0 / 0.5369 GB, free: 9.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.3455, allocations: 0 / 0.5369 GB, free: 9.77 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.0003173/0.3458, allocations: 320.6 kB / 0.5372 GB, free: 9.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3458, allocations: 9.438 kB / 0.5372 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.3459, allocations: 110.9 kB / 0.5373 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.3461, allocations: 85.45 kB / 0.5374 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.3463, allocations: 236.5 kB / 0.5376 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.834e-05/0.3463, allocations: 155.9 kB / 0.5377 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/0.3464, allocations: 158.5 kB / 0.5379 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.059e-05/0.3465, allocations: 106.1 kB / 0.538 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.3465, allocations: 79.28 kB / 0.5381 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.05e-05/0.3466, allocations: 151.7 kB / 0.5382 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-05/0.3467, allocations: 150.6 kB / 0.5383 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.854e-05/0.3467, allocations: 159.6 kB / 0.5385 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003088/0.3471, allocations: 447 kB / 0.5389 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.594e-05/0.3472, allocations: 170.2 kB / 0.5391 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/0.3472, allocations: 80.14 kB / 0.5392 GB, free: 7.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.3473, allocations: 80.38 kB / 0.5392 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.398e-05/0.3473, allocations: 107 kB / 0.5393 GB, free: 7.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.322e-06/0.3473, allocations: 3.938 kB / 0.5393 GB, free: 7.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 6.965e-05/0.3474, allocations: 26.83 kB / 0.5394 GB, free: 7.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.3475, allocations: 183.2 kB / 0.5395 GB, free: 6.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.3476, allocations: 94.91 kB / 0.5396 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.3477, allocations: 26.67 kB / 0.5397 GB, free: 6.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.092e-05/0.3477, allocations: 85.39 kB / 0.5397 GB, free: 6.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-06/0.3477, allocations: 0 / 0.5397 GB, free: 6.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.3478, allocations: 11.72 kB / 0.5398 GB, free: 6.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3479, allocations: 311.9 kB / 0.54 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.659e-06/0.3479, allocations: 0 / 0.54 GB, free: 6.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.034e-05/0.348, allocations: 11.5 kB / 0.5401 GB, free: 6.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.078e-05/0.348, allocations: 77.16 kB / 0.5401 GB, free: 6.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.791e-05/0.348, allocations: 83.31 kB / 0.5402 GB, free: 6.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.245e-05/0.3481, allocations: 40.48 kB / 0.5403 GB, free: 6.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.529e-05/0.3482, allocations: 84.11 kB / 0.5403 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.833e-05/0.3482, allocations: 76.41 kB / 0.5404 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.597e-05/0.3483, allocations: 155.3 kB / 0.5406 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.234e-05/0.3483, allocations: 76.31 kB / 0.5406 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.338e-05/0.3484, allocations: 151.7 kB / 0.5408 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.275e-05/0.3485, allocations: 84.22 kB / 0.5409 GB, free: 5.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.143e-05/0.3485, allocations: 76.19 kB / 0.5409 GB, free: 5.383 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.0001505/0.3487, allocations: 274.4 kB / 0.5412 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.345e-05/0.3488, allocations: 107 kB / 0.5413 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.447e-05/0.3488, allocations: 109 kB / 0.5414 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.921e-05/0.3489, allocations: 193.2 kB / 0.5416 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.971e-05/0.349, allocations: 185.7 kB / 0.5418 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.077e-05/0.3491, allocations: 184.2 kB / 0.5419 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.3494, allocations: 403.5 kB / 0.5423 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.848e-05/0.3494, allocations: 102.3 kB / 0.5424 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-05/0.3495, allocations: 104.9 kB / 0.5425 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.792e-05/0.3496, allocations: 185.4 kB / 0.5427 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/0.3497, allocations: 181.4 kB / 0.5429 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.259e-05/0.3498, allocations: 181.4 kB / 0.543 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.355e-05/0.3498, allocations: 177.5 kB / 0.5432 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.35, allocations: 315.4 kB / 0.5435 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.5e-05/0.3501, allocations: 179.2 kB / 0.5437 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.266e-05/0.3502, allocations: 186.6 kB / 0.5439 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.3503, allocations: 102.1 kB / 0.5439 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.3504, allocations: 185.3 kB / 0.5441 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.3504, allocations: 106.2 kB / 0.5442 GB, free: 1.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.267e-05/0.3505, allocations: 80.47 kB / 0.5443 GB, free: 1.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3505, allocations: 0 / 0.5443 GB, free: 1.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00026/0.3508, allocations: 2.312 kB / 0.5443 GB, free: 1.723 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.0004407/0.3512, allocations: 0.8115 MB / 0.5451 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.005e-05/0.3513, allocations: 1.125 kB / 0.5451 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3513, allocations: 0 / 0.5451 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.3513, allocations: 1.094 kB / 0.5451 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.3517, allocations: 457.6 kB / 0.5455 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.352, allocations: 179.9 kB / 0.5457 GB, free: 244 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.3523, allocations: 0.6701 MB / 0.5464 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.147e-05/0.3524, allocations: 11.86 kB / 0.5464 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.3524, allocations: 8.719 kB / 0.5464 GB, free: 15.52 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3524, allocations: 0 / 0.5464 GB, free: 15.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.3742, allocations: 1.009 MB / 0.5474 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/8.443, allocations: 9.047 kB / 0.5474 GB, free: 14.91 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