Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.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) 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(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",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.0007528/0.0007528, allocations: 88.39 kB / 16.31 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.0008919/0.000892, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.324/1.324, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002703/0.0002705, allocations: 5.594 kB / 300.9 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09587, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.04691/0.1428, allocations: 46.7 MB / 398 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00558/0.1484, allocations: 4.837 MB / 402.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.1488, allocations: 4 kB / 402.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005781/0.1494, allocations: 174.9 kB / 403.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006/0.15, allocations: 346.2 kB / 403.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01417/0.1642, allocations: 5.24 MB / 408.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.1657, allocations: 1.333 MB / 410 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1659, allocations: 97.58 kB / 410.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00935/0.1753, allocations: 6.12 MB / 416.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005698/0.1759, allocations: 398.6 kB / 416.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.155e-05/0.176, allocations: 31.94 kB / 416.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01712/0.1931, allocations: 8.471 MB / 425.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003351/0.1935, allocations: 191.5 kB / 425.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.1938, allocations: 129.5 kB / 425.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2119/0.4056, allocations: 3.542 MB / 428.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4057, allocations: 0.875 kB / 428.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4057, allocations: 3.062 kB / 428.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.4057, allocations: 0 / 428.9 MB, free: 17.14 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003457/0.4092, allocations: 1.248 MB / 430.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4092, allocations: 11.53 kB / 430.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.4093, allocations: 83.91 kB / 430.3 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003278/0.4097, allocations: 66.94 kB / 430.3 MB, free: 16.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.4101, allocations: 359 kB / 430.7 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.4101, allocations: 31.34 kB / 430.7 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.4102, allocations: 43.78 kB / 430.8 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.4114, allocations: 0.5837 MB / 431.3 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.4115, allocations: 1.547 kB / 431.3 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/0.4115, allocations: 18.12 kB / 431.4 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.4115, allocations: 11.06 kB / 431.4 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.4128, allocations: 0.7396 MB / 432.1 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.4263, allocations: 12 MB / 444.1 MB, free: 21.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.4276, allocations: 0.5328 MB / 444.6 MB, free: 21.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.428, allocations: 256.5 kB / 444.9 MB, free: 21.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01318/0.4412, allocations: 11.95 MB / 456.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.4412, allocations: 39.31 kB / 456.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.555e-06/0.4412, allocations: 0 / 456.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.005156/0.4464, allocations: 2.131 MB / 459 MB, free: 9.012 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.4465, allocations: 59.31 kB / 459.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.4468, allocations: 323.5 kB / 459.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.4469, allocations: 38.86 kB / 459.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.447, allocations: 191.4 kB / 459.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.4471, allocations: 193.8 kB / 459.8 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.4471, allocations: 12.09 kB / 459.8 MB, free: 8.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4473, allocations: 353.4 kB / 460.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.4476, allocations: 235 kB / 460.4 MB, free: 8.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.4481, allocations: 350.4 kB / 460.7 MB, free: 8.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.4487, allocations: 283.6 kB / 461 MB, free: 8.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4487, allocations: 0 / 461 MB, free: 8.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001591/0.4503, allocations: 0.7461 MB / 461.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4503, allocations: 10.5 kB / 461.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.4503, allocations: 2.375 kB / 461.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004387/0.4508, allocations: 101.7 kB / 461.9 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.4512, allocations: 124.3 kB / 462 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.4537, allocations: 3.275 MB / 465.3 MB, free: 20.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.4541, allocations: 40.94 kB / 465.3 MB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.4542, allocations: 32.28 kB / 465.3 MB, free: 20.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.4544, allocations: 195.5 kB / 465.5 MB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.4547, allocations: 47.64 kB / 465.6 MB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/0.456, allocations: 0.8213 MB / 466.4 MB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4561, allocations: 4.969 kB / 466.4 MB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.4561, allocations: 6.312 kB / 466.4 MB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009802/0.4571, allocations: 0.7565 MB / 467.2 MB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.4588, allocations: 1.3 MB / 468.5 MB, free: 19.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4588, allocations: 0 / 468.5 MB, free: 19.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.4592, allocations: 99.58 kB / 468.6 MB, free: 19.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008063/0.46, allocations: 154 kB / 468.7 MB, free: 19.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.4601, allocations: 19.36 kB / 468.7 MB, free: 19.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003749/0.4605, allocations: 0.6424 MB / 469.4 MB, free: 19.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4605, allocations: 7.797 kB / 469.4 MB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.4619, allocations: 0.9034 MB / 470.3 MB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.462, allocations: 127 kB / 470.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.604e-05/0.4621, allocations: 10.81 kB / 470.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.4624, allocations: 37.25 kB / 470.5 MB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.4625, allocations: 38.98 kB / 470.5 MB, free: 19.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.407e-05/0.4626, allocations: 34.89 kB / 470.5 MB, free: 19.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002706/0.4628, allocations: 257.1 kB / 470.8 MB, free: 18.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4629, allocations: 0 / 470.8 MB, free: 18.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00393/0.4668, allocations: 1.308 MB / 472.1 MB, free: 18.76 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006515/0.4733, allocations: 2.884 MB / 475 MB, free: 17.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.4747, allocations: 0.7981 MB / 475.8 MB, free: 17.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.4747, allocations: 7.438 kB / 475.8 MB, free: 17.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.4752, allocations: 290.5 kB / 476.1 MB, free: 17.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.4769, allocations: 266.2 kB / 476.3 MB, free: 17.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00664/0.4836, allocations: 3.542 MB / 479.9 MB, free: 16.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.484, allocations: 0.8331 MB / 480.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005572/0.4845, allocations: 147.3 kB / 480.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.4848, allocations: 156.5 kB / 481 MB, free: 15.61 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4848, allocations: 0 / 481 MB, free: 15.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07455/0.5593, allocations: 49.46 MB / 0.518 GB, free: 2.719 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.5596, allocations: 255.8 kB / 0.5183 GB, free: 2.383 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.969/4.528, allocations: 0 / 0.5183 GB, free: 2.383 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat does not exist to compare? outputFormat=mat