Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 112.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2272/0.2272, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 63.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3207, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001473/0.3222, allocations: 492.2 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.3246, allocations: 1.997 MB / 0.5208 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.672e-05/0.3247, allocations: 3.938 kB / 0.5208 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.3247, allocations: 0 / 0.5208 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.114e-05/0.3247, allocations: 5.062 kB / 0.5208 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.3258, allocations: 385.6 kB / 0.5212 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.202e-05/0.3258, allocations: 1.781 kB / 0.5212 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.3259, allocations: 2.984 kB / 0.5212 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.621e-05/0.3259, allocations: 5.109 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0195/0.3454, allocations: 3.353 MB / 0.5245 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.3454, allocations: 3.938 kB / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.118e-05/0.3455, allocations: 6.016 kB / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.3456, allocations: 0 / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.369e-05/0.3456, allocations: 1.906 kB / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3457, allocations: 21.55 kB / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3457, allocations: 0 / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3457, allocations: 0 / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.3457, allocations: 1.984 kB / 0.5245 GB, free: 0.5352 MB / 382.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.0002159/0.346, allocations: 317.6 kB / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.346, allocations: 10.06 kB / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.735e-05/0.346, allocations: 106.7 kB / 0.5249 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.3462, allocations: 89.36 kB / 0.525 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.3464, allocations: 237.2 kB / 0.5252 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.715e-05/0.3465, allocations: 156.5 kB / 0.5254 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.504e-05/0.3466, allocations: 158.5 kB / 0.5255 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.125e-05/0.3466, allocations: 101.7 kB / 0.5256 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/0.3467, allocations: 76.44 kB / 0.5257 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.423e-05/0.3468, allocations: 150.6 kB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.8e-05/0.3468, allocations: 151.8 kB / 0.526 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.817e-05/0.3469, allocations: 155.2 kB / 0.5261 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.3472, allocations: 448.6 kB / 0.5266 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.828e-05/0.3473, allocations: 170.5 kB / 0.5267 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.978e-05/0.3474, allocations: 81.14 kB / 0.5268 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.3474, allocations: 79.28 kB / 0.5269 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/0.3475, allocations: 111.8 kB / 0.527 GB, free: 13.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.3475, allocations: 0 / 0.527 GB, free: 13.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.374e-05/0.3476, allocations: 32.75 kB / 0.527 GB, free: 13.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3477, allocations: 178.8 kB / 0.5272 GB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.539e-05/0.3478, allocations: 92.45 kB / 0.5273 GB, free: 13.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.3478, allocations: 27.02 kB / 0.5273 GB, free: 13.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.3478, allocations: 84.27 kB / 0.5274 GB, free: 13.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-06/0.3479, allocations: 1.312 kB / 0.5274 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.3479, allocations: 15.61 kB / 0.5274 GB, free: 13.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.348, allocations: 313 kB / 0.5277 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.216e-06/0.348, allocations: 4 kB / 0.5277 GB, free: 13.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.621e-05/0.3481, allocations: 16.62 kB / 0.5277 GB, free: 13.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.671e-05/0.3481, allocations: 76.62 kB / 0.5278 GB, free: 12.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.072e-05/0.3482, allocations: 79.31 kB / 0.5279 GB, free: 12.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.83e-05/0.3482, allocations: 36.91 kB / 0.5279 GB, free: 12.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.3483, allocations: 81.11 kB / 0.528 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.3483, allocations: 77.31 kB / 0.5281 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.077e-05/0.3484, allocations: 155.9 kB / 0.5282 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.501e-05/0.3484, allocations: 87.81 kB / 0.5283 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.476e-05/0.3485, allocations: 152.3 kB / 0.5284 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.765e-05/0.3486, allocations: 85.19 kB / 0.5285 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.3486, allocations: 77.08 kB / 0.5286 GB, free: 12.16 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.0001491/0.3488, allocations: 263.7 kB / 0.5288 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-05/0.3489, allocations: 102.7 kB / 0.5289 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.268e-05/0.3489, allocations: 113.7 kB / 0.5291 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-05/0.349, allocations: 182.8 kB / 0.5292 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-05/0.3491, allocations: 185.9 kB / 0.5294 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.726e-05/0.3492, allocations: 178 kB / 0.5296 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.3495, allocations: 408.2 kB / 0.53 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.661e-05/0.3495, allocations: 102.6 kB / 0.5301 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/0.3496, allocations: 107 kB / 0.5302 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.653e-05/0.3497, allocations: 181.8 kB / 0.5303 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.254e-05/0.3498, allocations: 178.1 kB / 0.5305 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.507e-05/0.3499, allocations: 182.3 kB / 0.5307 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.489e-05/0.3499, allocations: 182.1 kB / 0.5309 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.3501, allocations: 313.1 kB / 0.5312 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.534e-05/0.3502, allocations: 180.6 kB / 0.5313 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.717e-05/0.3503, allocations: 183.4 kB / 0.5315 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3504, allocations: 107.4 kB / 0.5316 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.3505, allocations: 178.3 kB / 0.5318 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/0.3506, allocations: 114 kB / 0.5319 GB, free: 8.609 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.3506, allocations: 77.09 kB / 0.532 GB, free: 8.535 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3506, allocations: 0 / 0.532 GB, free: 8.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.3509, allocations: 2.312 kB / 0.532 GB, free: 8.535 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.000473/0.3514, allocations: 0.8038 MB / 0.5327 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.576e-05/0.3514, allocations: 5.188 kB / 0.5327 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3514, allocations: 0 / 0.5327 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.645e-06/0.3514, allocations: 6.297 kB / 0.5328 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.3518, allocations: 457 kB / 0.5332 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.3522, allocations: 177.5 kB / 0.5334 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.3525, allocations: 0.6755 MB / 0.534 GB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.048e-05/0.3526, allocations: 1.375 kB / 0.534 GB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.3526, allocations: 7.438 kB / 0.534 GB, free: 6.348 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3526, allocations: 0 / 0.534 GB, free: 6.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.377, allocations: 1.02 MB / 0.535 GB, free: 5.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.528, allocations: 5.312 kB / 0.535 GB, free: 5.977 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.csv","/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_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches