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.001408/0.001408, allocations: 113.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.001588/0.001588, allocations: 179.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.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2204/0.2204, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3473, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001561/0.3489, allocations: 492.9 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.3515, allocations: 2.004 MB / 0.5208 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.13e-05/0.3515, allocations: 0 / 0.5208 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.3515, allocations: 4 kB / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.596e-05/0.3516, allocations: 0 / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.3528, allocations: 378.1 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.496e-05/0.3529, allocations: 2.438 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.634e-05/0.3529, allocations: 1.844 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.766e-05/0.3529, allocations: 1.969 kB / 0.5212 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01563/0.3686, allocations: 3.357 MB / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.3686, allocations: 0 / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.391e-05/0.3687, allocations: 4.875 kB / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.3687, allocations: 0 / 0.5245 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.3688, allocations: 5.781 kB / 0.5245 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.3689, allocations: 18.72 kB / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3689, allocations: 0 / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3689, allocations: 0.5625 kB / 0.5245 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3689, allocations: 4 kB / 0.5245 GB, free: 0.5312 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.0002555/0.3692, allocations: 315.4 kB / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3693, allocations: 9.625 kB / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3693, allocations: 110.7 kB / 0.5249 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.3695, allocations: 85.67 kB / 0.525 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.3697, allocations: 240.8 kB / 0.5252 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.594e-05/0.3698, allocations: 156.3 kB / 0.5254 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.441e-05/0.3698, allocations: 154.5 kB / 0.5255 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.432e-05/0.3699, allocations: 103 kB / 0.5256 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.3699, allocations: 75.28 kB / 0.5257 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.37, allocations: 150.6 kB / 0.5258 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-05/0.3701, allocations: 152.5 kB / 0.526 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.015e-05/0.3701, allocations: 162.5 kB / 0.5261 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.3704, allocations: 441.4 kB / 0.5266 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.75e-05/0.3705, allocations: 174.4 kB / 0.5267 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.332e-05/0.3706, allocations: 84.14 kB / 0.5268 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3706, allocations: 79.89 kB / 0.5269 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.54e-05/0.3706, allocations: 107.8 kB / 0.527 GB, free: 13.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.282e-06/0.3707, allocations: 0 / 0.527 GB, free: 13.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.685e-05/0.3707, allocations: 31.53 kB / 0.527 GB, free: 13.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.3708, allocations: 180.1 kB / 0.5272 GB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.555e-05/0.3709, allocations: 91.84 kB / 0.5273 GB, free: 13.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.371, allocations: 31.2 kB / 0.5273 GB, free: 13.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.416e-05/0.371, allocations: 84.75 kB / 0.5274 GB, free: 13.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-06/0.371, allocations: 0 / 0.5274 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.371, allocations: 13.12 kB / 0.5274 GB, free: 13.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3712, allocations: 312.7 kB / 0.5277 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.189e-06/0.3712, allocations: 3.938 kB / 0.5277 GB, free: 13.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.561e-05/0.3712, allocations: 11.75 kB / 0.5277 GB, free: 13.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.012e-05/0.3712, allocations: 80.69 kB / 0.5278 GB, free: 12.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.33e-05/0.3713, allocations: 75.28 kB / 0.5279 GB, free: 12.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.678e-05/0.3713, allocations: 37.41 kB / 0.5279 GB, free: 12.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.3714, allocations: 80.78 kB / 0.528 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/0.3714, allocations: 77.36 kB / 0.5281 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.707e-05/0.3715, allocations: 163 kB / 0.5282 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.719e-05/0.3715, allocations: 77.22 kB / 0.5283 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.348e-05/0.3716, allocations: 156.6 kB / 0.5284 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.251e-05/0.3717, allocations: 85.3 kB / 0.5285 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.3717, allocations: 76.66 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.0001437/0.3719, allocations: 262.9 kB / 0.5288 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-05/0.372, allocations: 111 kB / 0.5289 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.4e-05/0.372, allocations: 106.1 kB / 0.529 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.458e-05/0.3721, allocations: 182.8 kB / 0.5292 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-05/0.3722, allocations: 181 kB / 0.5294 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.987e-05/0.3722, allocations: 178.2 kB / 0.5296 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.3725, allocations: 408.9 kB / 0.53 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/0.3725, allocations: 107.1 kB / 0.5301 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.484e-05/0.3726, allocations: 107 kB / 0.5302 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.071e-05/0.3726, allocations: 182.3 kB / 0.5303 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.3727, allocations: 176.9 kB / 0.5305 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.353e-05/0.3728, allocations: 182.4 kB / 0.5307 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.981e-05/0.3729, allocations: 186.2 kB / 0.5309 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.373, allocations: 310.1 kB / 0.5311 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.3731, allocations: 179.3 kB / 0.5313 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.096e-05/0.3732, allocations: 188 kB / 0.5315 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.3733, allocations: 103.2 kB / 0.5316 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.3734, allocations: 184.8 kB / 0.5318 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/0.3734, allocations: 111 kB / 0.5319 GB, free: 8.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.746e-05/0.3735, allocations: 77.55 kB / 0.532 GB, free: 8.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3735, allocations: 0 / 0.532 GB, free: 8.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002671/0.3737, allocations: 2.75 kB / 0.532 GB, free: 8.531 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.0003871/0.3741, allocations: 0.8067 MB / 0.5327 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.253e-05/0.3742, allocations: 1.375 kB / 0.5327 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3742, allocations: 3.938 kB / 0.5327 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-06/0.3742, allocations: 1.375 kB / 0.5327 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.3746, allocations: 459.1 kB / 0.5332 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.3749, allocations: 177.5 kB / 0.5334 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.3752, allocations: 0.6749 MB / 0.534 GB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.251e-05/0.3752, allocations: 0 / 0.534 GB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.3752, allocations: 8.812 kB / 0.534 GB, free: 6.344 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3753, allocations: 0 / 0.534 GB, free: 6.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.3924, allocations: 1.02 MB / 0.535 GB, free: 5.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.99, allocations: 5.375 kB / 0.535 GB, free: 5.973 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