Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O",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.001211/0.001211, allocations: 96.5 kB / 16.95 MB, free: 6.453 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.001689/0.001689, allocations: 183.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004808/0.0004809, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08376/0.08425, allocations: 47.56 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3194/0.4037, allocations: 136.4 MB / 464.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.4055, allocations: 1.408 MB / 466.3 MB, free: 272 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.094e-05/0.4056, allocations: 0 / 466.3 MB, free: 272 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.4057, allocations: 15.91 kB / 466.3 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008661/0.4066, allocations: 252.7 kB / 466.5 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.4069, allocations: 56.05 kB / 466.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.407, allocations: 71.55 kB / 466.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.407, allocations: 4 kB / 466.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.4072, allocations: 27.86 kB / 466.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.485e-05/0.4072, allocations: 31.86 kB / 466.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.4073, allocations: 0 / 466.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008429/0.4081, allocations: 367.3 kB / 467.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.4081, allocations: 15.91 kB / 467.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.4082, allocations: 33.7 kB / 467.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004668/0.4087, allocations: 209.3 kB / 467.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4087, allocations: 0 / 467.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4087, allocations: 0 / 467.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.4087, allocations: 0 / 467.3 MB, free: 15.2 MB / 366.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.0008325/0.4095, allocations: 427.8 kB / 467.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4096, allocations: 12.03 kB / 467.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.4096, allocations: 42.55 kB / 467.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005131/0.4148, allocations: 451.8 kB / 468.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.4149, allocations: 167.5 kB / 468.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.415, allocations: 8 kB / 468.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.4151, allocations: 12 kB / 468.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007901/0.4159, allocations: 297.2 kB / 468.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4159, allocations: 0 / 468.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.62e-05/0.416, allocations: 4 kB / 468.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.416, allocations: 4 kB / 468.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007947/0.4168, allocations: 279.8 kB / 469 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.4179, allocations: 429.2 kB / 469.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009386/0.4189, allocations: 202.3 kB / 469.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.4191, allocations: 76.81 kB / 469.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.4191, allocations: 0 / 469.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4192, allocations: 42.52 kB / 469.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.542e-06/0.4192, allocations: 0 / 469.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.001619/0.4208, allocations: 419 kB / 470.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.4209, allocations: 55.41 kB / 470.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.421, allocations: 101.8 kB / 470.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.421, allocations: 29.7 kB / 470.3 MB, free: 12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.263e-05/0.4211, allocations: 95.89 kB / 470.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.573e-05/0.4211, allocations: 59.11 kB / 470.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.4212, allocations: 7.938 kB / 470.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4213, allocations: 318.8 kB / 470.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.4215, allocations: 80.25 kB / 470.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.4218, allocations: 117 kB / 471 MB, free: 11.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.422, allocations: 90.77 kB / 471.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4221, allocations: 0 / 471.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006354/0.4227, allocations: 241.3 kB / 471.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4227, allocations: 4.125 kB / 471.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4227, allocations: 8 kB / 471.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4228, allocations: 3.938 kB / 471.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.4231, allocations: 47.95 kB / 471.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.4232, allocations: 7.938 kB / 471.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.4234, allocations: 15.98 kB / 471.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.4234, allocations: 11.98 kB / 471.4 MB, free: 10.88 MB / 366.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.0001182/0.4236, allocations: 121.8 kB / 471.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.4236, allocations: 11.86 kB / 471.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008132/0.4244, allocations: 277.2 kB / 471.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.4245, allocations: 4 kB / 471.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4245, allocations: 0.875 kB / 471.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4245, allocations: 3.984 kB / 471.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.4257, allocations: 0.5746 MB / 472.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4257, allocations: 4 kB / 472.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.426, allocations: 43.91 kB / 472.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.426, allocations: 4.062 kB / 472.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.4261, allocations: 15.3 kB / 472.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.4261, allocations: 0 / 472.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4261, allocations: 4 kB / 472.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.4267, allocations: 333.6 kB / 472.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.806e-05/0.4268, allocations: 81.11 kB / 472.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.4268, allocations: 7.922 kB / 472.9 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.4271, allocations: 15.98 kB / 472.9 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.4271, allocations: 7.984 kB / 472.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.4271, allocations: 8 kB / 472.9 MB, free: 9.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.523e-05/0.4272, allocations: 91.27 kB / 473 MB, free: 9.188 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4272, allocations: 0 / 473 MB, free: 9.188 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.4276, allocations: 43.95 kB / 473 MB, free: 9.145 MB / 366.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.001047/0.4286, allocations: 0.8857 MB / 473.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005727/0.4292, allocations: 191.8 kB / 474.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4292, allocations: 0 / 474.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.4295, allocations: 115.5 kB / 474.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.4299, allocations: 32.22 kB / 474.3 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009972/0.4309, allocations: 354.1 kB / 474.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.4312, allocations: 0.693 MB / 475.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004063/0.4316, allocations: 56.75 kB / 475.4 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.4318, allocations: 43.39 kB / 475.4 MB, free: 6.691 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4318, allocations: 3.938 kB / 475.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.4477, allocations: 3.949 MB / 479.4 MB, free: 2.746 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.448, allocations: 170.6 kB / 479.5 MB, free: 2.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.223, allocations: 0 / 479.5 MB, free: 2.504 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat