Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007776/0.0007775, allocations: 97.12 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000197/0.0001971, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1699, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.2741/0.444, allocations: 135.4 MB / 0.5308 GB, free: 13.45 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.4459, allocations: 2.33 MB / 0.533 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.3e-05/0.446, allocations: 3.562 kB / 0.533 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.4461, allocations: 16.95 kB / 0.5331 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.4466, allocations: 257.4 kB / 0.5333 GB, free: 13.22 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001264/0.4468, allocations: 46.53 kB / 0.5333 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.09e-05/0.4469, allocations: 72.64 kB / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.968e-05/0.4469, allocations: 5.734 kB / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.067e-05/0.447, allocations: 29.55 kB / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.089e-05/0.447, allocations: 27.94 kB / 0.5335 GB, free: 13.17 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.4471, allocations: 4 kB / 0.5335 GB, free: 13.17 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006118/0.4477, allocations: 372.1 kB / 0.5338 GB, free: 13.14 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.469e-05/0.4477, allocations: 11.59 kB / 0.5338 GB, free: 13.14 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 5.018e-05/0.4478, allocations: 52.86 kB / 0.5339 GB, free: 13.1 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.4481, allocations: 212.3 kB / 0.5341 GB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4481, allocations: 2.734 kB / 0.5341 GB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4481, allocations: 0.8125 kB / 0.5341 GB, free: 13.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.4481, allocations: 0 / 0.5341 GB, free: 13.09 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007184/0.4488, allocations: 427.2 kB / 0.5345 GB, free: 12.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.4489, allocations: 11.16 kB / 0.5345 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.309e-05/0.4489, allocations: 39.34 kB / 0.5346 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005871/0.4548, allocations: 452.4 kB / 0.535 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.231e-05/0.4549, allocations: 165.3 kB / 0.5351 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.4549, allocations: 11.22 kB / 0.5352 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.455, allocations: 8.125 kB / 0.5352 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.4557, allocations: 298.6 kB / 0.5354 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4557, allocations: 1.281 kB / 0.5354 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.4558, allocations: 6.984 kB / 0.5355 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.4558, allocations: 1.312 kB / 0.5355 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007124/0.4565, allocations: 273.6 kB / 0.5357 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008517/0.4573, allocations: 430.6 kB / 0.5361 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009458/0.4583, allocations: 212.2 kB / 0.5363 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.4585, allocations: 70.78 kB / 0.5364 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.4585, allocations: 3.125 kB / 0.5364 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.4585, allocations: 33.75 kB / 0.5364 GB, free: 12.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.4585, allocations: 0 / 0.5364 GB, free: 12.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.001535/0.4601, allocations: 414.9 kB / 0.5368 GB, free: 11.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.4601, allocations: 54.34 kB / 0.5369 GB, free: 11.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.247e-05/0.4602, allocations: 106.9 kB / 0.537 GB, free: 11.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.4602, allocations: 28.95 kB / 0.537 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.4603, allocations: 96.67 kB / 0.5371 GB, free: 11.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/0.4603, allocations: 62.75 kB / 0.5372 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/0.4604, allocations: 7.281 kB / 0.5372 GB, free: 11.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.983e-05/0.4605, allocations: 316.8 kB / 0.5375 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.4607, allocations: 82.16 kB / 0.5375 GB, free: 11.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.461, allocations: 112.8 kB / 0.5377 GB, free: 11.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005356/0.4615, allocations: 207.4 kB / 0.5379 GB, free: 11.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4615, allocations: 0 / 0.5379 GB, free: 11.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005999/0.4621, allocations: 245.6 kB / 0.5381 GB, free: 11.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.4622, allocations: 4.594 kB / 0.5381 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4622, allocations: 3.344 kB / 0.5381 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4622, allocations: 2.938 kB / 0.5381 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.4625, allocations: 51.31 kB / 0.5381 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.4626, allocations: 4.125 kB / 0.5382 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.4628, allocations: 15.17 kB / 0.5382 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.4629, allocations: 16.95 kB / 0.5382 GB, free: 11.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.509e-05/0.463, allocations: 123 kB / 0.5383 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.463, allocations: 6.812 kB / 0.5383 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007374/0.4637, allocations: 276.9 kB / 0.5386 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4638, allocations: 2.969 kB / 0.5386 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4638, allocations: 4 kB / 0.5386 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4638, allocations: 1.969 kB / 0.5386 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.4649, allocations: 0.5936 MB / 0.5392 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.4649, allocations: 0 / 0.5392 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.4652, allocations: 48.59 kB / 0.5392 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4652, allocations: 1.859 kB / 0.5392 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.4652, allocations: 7.109 kB / 0.5392 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4653, allocations: 2.656 kB / 0.5392 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4653, allocations: 7.875 kB / 0.5392 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.4659, allocations: 327 kB / 0.5395 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.4659, allocations: 83.95 kB / 0.5396 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.4659, allocations: 12.62 kB / 0.5396 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.4662, allocations: 13.36 kB / 0.5396 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.4663, allocations: 14.45 kB / 0.5397 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.4663, allocations: 13.48 kB / 0.5397 GB, free: 10.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.215e-05/0.4663, allocations: 80.81 kB / 0.5397 GB, free: 10.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4663, allocations: 0 / 0.5397 GB, free: 10.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003084/0.4666, allocations: 43.16 kB / 0.5398 GB, free: 10.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009034/0.4676, allocations: 0.8783 MB / 0.5406 GB, free: 9.621 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005373/0.4681, allocations: 207 kB / 0.5408 GB, free: 9.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.4681, allocations: 1.859 kB / 0.5408 GB, free: 9.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.4684, allocations: 107.2 kB / 0.5409 GB, free: 9.543 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.4688, allocations: 39.28 kB / 0.541 GB, free: 9.527 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009021/0.4697, allocations: 378.7 kB / 0.5413 GB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.4699, allocations: 0.6937 MB / 0.542 GB, free: 8.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.4701, allocations: 53.5 kB / 0.5421 GB, free: 8.5 MB / 394.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4701, allocations: 0 / 0.5421 GB, free: 8.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.444/2.914, allocations: 2.055 MB / 0.5441 GB, free: 7.465 MB / 394.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches