Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.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) 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(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009666/0.0009664, allocations: 99.86 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003457, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1336, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3221/0.4557, allocations: 135.4 MB / 493.7 MB, free: 5.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.458, allocations: 2.325 MB / 496 MB, free: 3.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.924e-05/0.458, allocations: 0 / 496 MB, free: 3.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.4581, allocations: 17.91 kB / 496 MB, free: 3.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000638/0.4588, allocations: 259.7 kB / 496.3 MB, free: 2.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.4589, allocations: 55.75 kB / 496.3 MB, free: 2.723 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.871e-05/0.459, allocations: 67.59 kB / 496.4 MB, free: 2.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.4591, allocations: 4 kB / 496.4 MB, free: 2.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.431e-05/0.4592, allocations: 31.86 kB / 496.4 MB, free: 2.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.377e-05/0.4592, allocations: 31.84 kB / 496.5 MB, free: 2.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.4593, allocations: 0 / 496.5 MB, free: 2.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006138/0.4599, allocations: 363.5 kB / 496.8 MB, free: 2.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.35e-05/0.4599, allocations: 11.92 kB / 496.8 MB, free: 2.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.589e-05/0.4599, allocations: 33.7 kB / 496.9 MB, free: 2.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.4602, allocations: 217.2 kB / 497.1 MB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4602, allocations: 0 / 497.1 MB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4602, allocations: 1.5 kB / 497.1 MB, free: 1.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.4603, allocations: 0 / 497.1 MB, free: 1.973 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006988/0.461, allocations: 426.6 kB / 497.5 MB, free: 1.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.461, allocations: 16.03 kB / 497.5 MB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.023e-05/0.461, allocations: 38.5 kB / 497.5 MB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005063/0.4661, allocations: 455.8 kB / 498 MB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.738e-05/0.4662, allocations: 167 kB / 498.1 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.4662, allocations: 7.906 kB / 498.2 MB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.989e-05/0.4663, allocations: 8 kB / 498.2 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.467, allocations: 297.3 kB / 498.5 MB, free: 500 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.467, allocations: 0 / 498.5 MB, free: 500 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.467, allocations: 4 kB / 498.5 MB, free: 496 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.467, allocations: 3.984 kB / 498.5 MB, free: 492 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006824/0.4677, allocations: 271.7 kB / 498.7 MB, free: 220 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008335/0.4686, allocations: 441.3 kB / 499.2 MB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008335/0.4694, allocations: 202.4 kB / 499.4 MB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.4696, allocations: 76.75 kB / 499.4 MB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.4696, allocations: 0 / 499.4 MB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.4697, allocations: 42.36 kB / 499.5 MB, free: 15.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.092e-06/0.4697, allocations: 0 / 499.5 MB, free: 15.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001448/0.4711, allocations: 421 kB / 499.9 MB, free: 14.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.4712, allocations: 55.41 kB / 499.9 MB, free: 14.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/0.4712, allocations: 97.86 kB / 0.4883 GB, free: 14.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.4713, allocations: 29.7 kB / 0.4883 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.4713, allocations: 91.94 kB / 0.4884 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.77e-05/0.4714, allocations: 63.05 kB / 0.4885 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.922e-05/0.4714, allocations: 12 kB / 0.4885 GB, free: 14.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.4715, allocations: 318.8 kB / 0.4888 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.4717, allocations: 72.33 kB / 0.4889 GB, free: 14.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.472, allocations: 120.5 kB / 0.489 GB, free: 14.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.4722, allocations: 86.47 kB / 0.4891 GB, free: 14.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.4722, allocations: 0 / 0.4891 GB, free: 14.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005621/0.4728, allocations: 253.2 kB / 0.4893 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.4728, allocations: 4 kB / 0.4893 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.4728, allocations: 0 / 0.4893 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.4728, allocations: 4 kB / 0.4893 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.4732, allocations: 52.02 kB / 0.4894 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.4732, allocations: 4 kB / 0.4894 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.4734, allocations: 15.98 kB / 0.4894 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.4734, allocations: 12 kB / 0.4894 GB, free: 13.66 MB / 414.1 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 0.0001018/0.4736, allocations: 125.8 kB / 0.4895 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.4736, allocations: 7.953 kB / 0.4895 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007295/0.4743, allocations: 277.5 kB / 0.4898 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4743, allocations: 8 kB / 0.4898 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4744, allocations: 0 / 0.4898 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4744, allocations: 0 / 0.4898 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.4754, allocations: 0.5863 MB / 0.4904 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4754, allocations: 1.562 kB / 0.4904 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.4757, allocations: 43.95 kB / 0.4904 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.4758, allocations: 4 kB / 0.4904 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.4758, allocations: 11.98 kB / 0.4904 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4758, allocations: 0 / 0.4904 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4758, allocations: 0 / 0.4904 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.4764, allocations: 332.9 kB / 0.4907 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.4764, allocations: 85.02 kB / 0.4908 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.4764, allocations: 8 kB / 0.4908 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.4767, allocations: 15.98 kB / 0.4909 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.952e-05/0.4767, allocations: 11.97 kB / 0.4909 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.4768, allocations: 11.94 kB / 0.4909 GB, free: 12.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.615e-05/0.4768, allocations: 83.28 kB / 0.491 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4768, allocations: 0 / 0.491 GB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.4771, allocations: 47.94 kB / 0.491 GB, free: 11.91 MB / 414.1 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.0009002/0.478, allocations: 0.8809 MB / 0.4919 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005371/0.4786, allocations: 206.7 kB / 0.4921 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4786, allocations: 0 / 0.4921 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.4789, allocations: 103.8 kB / 0.4922 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.4793, allocations: 43.11 kB / 0.4922 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008569/0.4801, allocations: 351.1 kB / 0.4925 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.4804, allocations: 0.6931 MB / 0.4932 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003899/0.4808, allocations: 60.73 kB / 0.4933 GB, free: 9.492 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4809, allocations: 43.41 kB / 0.4933 GB, free: 9.449 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4809, allocations: 0 / 0.4933 GB, free: 9.449 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.4942, allocations: 3.979 MB / 0.4972 GB, free: 5.594 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.4943, allocations: 170.2 kB / 0.4974 GB, free: 5.352 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.304, allocations: 0 / 0.4974 GB, free: 5.352 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat