Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009481/0.0009479, allocations: 92.8 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.651e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3763/0.4916, allocations: 82.3 MB / 469.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.4919, allocations: 75.95 kB / 469.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02495/0.5169, allocations: 9.452 MB / 479.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5169, allocations: 4 kB / 479.4 MB, free: 2.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.057e-05/0.5169, allocations: 8 kB / 479.4 MB, free: 2.891 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009848/0.5179, allocations: 0.5782 MB / 480 MB, free: 2.266 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.518, allocations: 8.031 kB / 480 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.5181, allocations: 47.66 kB / 480 MB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.5186, allocations: 318.8 kB / 480.3 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.5187, allocations: 8 kB / 480.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.5187, allocations: 12 kB / 480.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003181/0.5191, allocations: 161 kB / 480.5 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004077/0.5195, allocations: 251.1 kB / 480.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.5195, allocations: 11.91 kB / 480.8 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.5195, allocations: 3.984 kB / 480.8 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.5196, allocations: 8 kB / 480.8 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.5209, allocations: 0.797 MB / 481.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.5214, allocations: 238.7 kB / 481.8 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.5216, allocations: 89.41 kB / 481.9 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.5216, allocations: 4.281 kB / 481.9 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.5219, allocations: 145.6 kB / 482 MB, free: 48 kB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.683e-06/0.5219, allocations: 4 kB / 482 MB, free: 44 kB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.00184/0.5237, allocations: 1.065 MB / 483.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.787e-05/0.5238, allocations: 183.9 kB / 483.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002949/0.5241, allocations: 273.2 kB / 483.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.5242, allocations: 25.7 kB / 483.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.5243, allocations: 184.8 kB / 483.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.5244, allocations: 146 kB / 483.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.5245, allocations: 0 / 483.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.5246, allocations: 342.8 kB / 484.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.5248, allocations: 80.81 kB / 484.3 MB, free: 13.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.525, allocations: 164.4 kB / 484.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.5251, allocations: 109.6 kB / 484.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5252, allocations: 0 / 484.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004915/0.5257, allocations: 314.9 kB / 484.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.5257, allocations: 8.125 kB / 484.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.5257, allocations: 0 / 484.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001098/0.5258, allocations: 20.86 kB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.5261, allocations: 91.89 kB / 485 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.5272, allocations: 1.237 MB / 486.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.5273, allocations: 7.938 kB / 486.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.5273, allocations: 19.98 kB / 486.3 MB, free: 11.49 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cylinder1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.5275, allocations: 117 kB / 486.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004463/0.528, allocations: 286.5 kB / 486.7 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.5281, allocations: 39.72 kB / 486.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005187/0.5286, allocations: 306.2 kB / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.5286, allocations: 7.984 kB / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.5286, allocations: 0 / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006109/0.5292, allocations: 0.6336 MB / 487.7 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.5304, allocations: 0.7787 MB / 488.4 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5304, allocations: 8 kB / 488.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/0.5308, allocations: 83.89 kB / 488.5 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.5308, allocations: 4 kB / 488.5 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.5308, allocations: 3.953 kB / 488.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.5308, allocations: 11.92 kB / 488.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.5308, allocations: 4.125 kB / 488.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000716/0.5316, allocations: 0.5632 MB / 489.1 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.5317, allocations: 140.7 kB / 489.2 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.5318, allocations: 8 kB / 489.3 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.532, allocations: 4 kB / 489.3 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.5321, allocations: 31.86 kB / 489.3 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.5321, allocations: 15.98 kB / 489.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000245/0.5323, allocations: 212.6 kB / 489.5 MB, free: 8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5324, allocations: 4 kB / 489.5 MB, free: 7.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004268/0.5328, allocations: 95.92 kB / 489.6 MB, free: 7.902 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00198/0.5348, allocations: 1.643 MB / 491.3 MB, free: 6.293 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005833/0.5354, allocations: 341.7 kB / 491.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.5354, allocations: 0 / 491.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.5356, allocations: 124.5 kB / 491.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004649/0.536, allocations: 69.67 kB / 491.8 MB, free: 5.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.5376, allocations: 0.8784 MB / 492.7 MB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.538, allocations: 0.808 MB / 493.5 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001738/0.5382, allocations: 47.27 kB / 493.5 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.5384, allocations: 131.3 kB / 493.6 MB, free: 3.824 MB / 362.7 MB Notification: Performance of SimCode: time 2.275e-06/0.5384, allocations: 0 / 493.6 MB, free: 3.824 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.5703, allocations: 7.706 MB / 0.4896 GB, free: 12.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/0.5706, allocations: 178.3 kB / 0.4898 GB, free: 11.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.653, allocations: 8 kB / 0.4898 GB, free: 11.97 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat