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.001522/0.001522, allocations: 113.4 kB / 17.78 MB, free: 5.246 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.001822/0.001822, allocations: 188.9 kB / 18.71 MB, free: 4.32 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2069/0.2069, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3334, allocations: 60.82 MB / 0.5184 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001456/0.3349, allocations: 498.2 kB / 0.5189 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.3375, allocations: 1.998 MB / 0.5208 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.3375, allocations: 3.938 kB / 0.5208 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.825e-05/0.3376, allocations: 0 / 0.5208 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.644e-05/0.3376, allocations: 5.438 kB / 0.5208 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.3387, allocations: 375.9 kB / 0.5212 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.327e-05/0.3387, allocations: 6.625 kB / 0.5212 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.517e-05/0.3388, allocations: 6.938 kB / 0.5212 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.501e-05/0.3388, allocations: 1.125 kB / 0.5212 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01548/0.3543, allocations: 3.351 MB / 0.5245 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.3543, allocations: 3.938 kB / 0.5245 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.3544, allocations: 9.344 kB / 0.5245 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.3544, allocations: 1.375 kB / 0.5245 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.3545, allocations: 3.984 kB / 0.5245 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.3546, allocations: 11.59 kB / 0.5245 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3546, allocations: 0 / 0.5245 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3546, allocations: 0 / 0.5245 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3546, allocations: 0 / 0.5245 GB, free: 0.5117 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.0002054/0.3548, allocations: 326.1 kB / 0.5248 GB, free: 160 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3549, allocations: 10.19 kB / 0.5248 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.154e-05/0.3549, allocations: 106 kB / 0.5249 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.3551, allocations: 86.38 kB / 0.525 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.3553, allocations: 236.7 kB / 0.5252 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.3553, allocations: 156.2 kB / 0.5254 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-05/0.3554, allocations: 162.5 kB / 0.5255 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.398e-05/0.3555, allocations: 101.9 kB / 0.5256 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.3555, allocations: 76.66 kB / 0.5257 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.3556, allocations: 150.6 kB / 0.5258 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.064e-05/0.3556, allocations: 151.9 kB / 0.526 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.868e-05/0.3557, allocations: 155.5 kB / 0.5261 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/0.356, allocations: 448.2 kB / 0.5266 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.341e-05/0.356, allocations: 171.1 kB / 0.5267 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.822e-05/0.3561, allocations: 80.14 kB / 0.5268 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3561, allocations: 80.08 kB / 0.5269 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/0.3562, allocations: 107.2 kB / 0.527 GB, free: 13.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.182e-06/0.3562, allocations: 0 / 0.527 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.394e-05/0.3563, allocations: 32 kB / 0.527 GB, free: 13.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.3563, allocations: 184.1 kB / 0.5272 GB, free: 13.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.3564, allocations: 91.84 kB / 0.5273 GB, free: 13.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.3565, allocations: 27.08 kB / 0.5273 GB, free: 13.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.3565, allocations: 84.27 kB / 0.5274 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.573e-06/0.3565, allocations: 0 / 0.5274 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.629e-05/0.3565, allocations: 13.27 kB / 0.5274 GB, free: 13.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3567, allocations: 313 kB / 0.5277 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.683e-06/0.3567, allocations: 0 / 0.5277 GB, free: 13.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.943e-05/0.3567, allocations: 23.59 kB / 0.5277 GB, free: 13.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.606e-05/0.3567, allocations: 76.66 kB / 0.5278 GB, free: 12.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.419e-05/0.3568, allocations: 79.31 kB / 0.5279 GB, free: 12.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.906e-05/0.3568, allocations: 37.5 kB / 0.5279 GB, free: 12.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.3569, allocations: 83.91 kB / 0.528 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/0.3569, allocations: 77.31 kB / 0.5281 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.147e-05/0.357, allocations: 155.1 kB / 0.5282 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.561e-05/0.357, allocations: 85.19 kB / 0.5283 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.198e-05/0.3571, allocations: 152.6 kB / 0.5284 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.405e-05/0.3572, allocations: 85.11 kB / 0.5285 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3572, allocations: 79.28 kB / 0.5286 GB, free: 12.13 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.0001126/0.3573, allocations: 263.8 kB / 0.5288 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.3574, allocations: 107.5 kB / 0.5289 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.3574, allocations: 106.6 kB / 0.529 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.264e-05/0.3575, allocations: 186.2 kB / 0.5292 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.545e-05/0.3576, allocations: 184.9 kB / 0.5294 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.948e-05/0.3576, allocations: 178.3 kB / 0.5296 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.3579, allocations: 405 kB / 0.53 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.103e-05/0.3579, allocations: 103 kB / 0.5301 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.388e-05/0.3579, allocations: 102.9 kB / 0.5301 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.236e-05/0.358, allocations: 188.9 kB / 0.5303 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.195e-05/0.3581, allocations: 178.2 kB / 0.5305 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.197e-05/0.3582, allocations: 182.3 kB / 0.5307 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.577e-05/0.3582, allocations: 182.3 kB / 0.5308 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.3584, allocations: 313.8 kB / 0.5311 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.192e-05/0.3584, allocations: 179.5 kB / 0.5313 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.3585, allocations: 184.7 kB / 0.5315 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.3586, allocations: 102.9 kB / 0.5316 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.3587, allocations: 177 kB / 0.5318 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.3587, allocations: 119 kB / 0.5319 GB, free: 8.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.503e-05/0.3588, allocations: 76.66 kB / 0.5319 GB, free: 8.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3588, allocations: 0 / 0.5319 GB, free: 8.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.359, allocations: 3.406 kB / 0.532 GB, free: 8.508 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.0003946/0.3594, allocations: 0.8024 MB / 0.5327 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.129e-05/0.3595, allocations: 5.922 kB / 0.5327 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.3595, allocations: 0 / 0.5327 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.923e-06/0.3595, allocations: 5.312 kB / 0.5327 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.3599, allocations: 455 kB / 0.5332 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.3602, allocations: 181.2 kB / 0.5334 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.3605, allocations: 0.6752 MB / 0.534 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.224e-05/0.3605, allocations: 1.375 kB / 0.534 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.162e-05/0.3605, allocations: 7.438 kB / 0.534 GB, free: 6.32 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3605, allocations: 0 / 0.534 GB, free: 6.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.3801, allocations: 1.023 MB / 0.535 GB, free: 5.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.578/7.958, allocations: 5.125 kB / 0.535 GB, free: 5.949 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.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_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches