Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001029/0.001029, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0008352/0.0008352, allocations: 105.8 kB / 286.5 MB, free: 204 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.901e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3763/0.495, allocations: 82.91 MB / 477.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.4954, allocations: 79.94 kB / 477.3 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02356/0.519, allocations: 8.345 MB / 485.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.519, allocations: 0 / 485.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.519, allocations: 8 kB / 485.7 MB, free: 12.07 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008938/0.5199, allocations: 0.5922 MB / 486.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.991e-05/0.52, allocations: 12.03 kB / 486.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.5201, allocations: 58.97 kB / 486.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.5203, allocations: 47.44 kB / 486.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.5208, allocations: 328.1 kB / 486.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.5209, allocations: 12.44 kB / 486.7 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.5209, allocations: 20.69 kB / 486.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005358/0.5215, allocations: 301.5 kB / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.5215, allocations: 3.984 kB / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.5215, allocations: 12 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.5215, allocations: 7.984 kB / 487.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.5218, allocations: 149.7 kB / 487.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.5233, allocations: 0.8054 MB / 488 MB, free: 9.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004603/0.5238, allocations: 207.3 kB / 488.2 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.5239, allocations: 79.91 kB / 488.3 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-05/0.524, allocations: 4 kB / 488.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.5243, allocations: 143.6 kB / 488.4 MB, free: 9.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.5243, allocations: 0 / 488.4 MB, free: 9.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006247/0.525, allocations: 261.8 kB / 488.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/0.5251, allocations: 324.3 kB / 489 MB, free: 8.449 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004777/0.5256, allocations: 374.9 kB / 489.4 MB, free: 8.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.5257, allocations: 33.7 kB / 489.4 MB, free: 8.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.5258, allocations: 208.4 kB / 489.6 MB, free: 7.828 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/0.5259, allocations: 86.83 kB / 489.7 MB, free: 7.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/0.5259, allocations: 4 kB / 489.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5261, allocations: 350.8 kB / 490 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.5262, allocations: 67.92 kB / 490.1 MB, free: 7.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.5265, allocations: 168.2 kB / 490.3 MB, free: 7.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.5266, allocations: 85.08 kB / 490.4 MB, free: 7.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5266, allocations: 0 / 490.4 MB, free: 7.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005167/0.5272, allocations: 292.4 kB / 490.6 MB, free: 6.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.5272, allocations: 8.938 kB / 490.6 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.5272, allocations: 3.984 kB / 490.7 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002146/0.5274, allocations: 36.84 kB / 490.7 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.5277, allocations: 55.91 kB / 490.7 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.5292, allocations: 1.445 MB / 492.2 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.5294, allocations: 31.69 kB / 492.2 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.5294, allocations: 8 kB / 492.2 MB, free: 5.004 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.5296, allocations: 129 kB / 492.4 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.5296, allocations: 43.48 kB / 492.4 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000551/0.5302, allocations: 282.2 kB / 492.7 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.5302, allocations: 4 kB / 492.7 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.5302, allocations: 0 / 492.7 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000513/0.5307, allocations: 0.5906 MB / 493.3 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.5318, allocations: 0.7474 MB / 494 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.5318, allocations: 0 / 494 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.532, allocations: 39.98 kB / 494.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.532, allocations: 4 kB / 494.1 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.5321, allocations: 7.984 kB / 494.1 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.5321, allocations: 4 kB / 494.1 MB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.5321, allocations: 3.953 kB / 494.1 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.5326, allocations: 430.8 kB / 494.5 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.5328, allocations: 148.6 kB / 494.6 MB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.5329, allocations: 8 kB / 494.6 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.5331, allocations: 11.98 kB / 494.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.5331, allocations: 20.17 kB / 494.7 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.5332, allocations: 8 kB / 494.7 MB, free: 2.324 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003419/0.5335, allocations: 305.2 kB / 495 MB, free: 2.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5335, allocations: 4 kB / 495 MB, free: 2.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004047/0.5339, allocations: 111.9 kB / 495.1 MB, free: 1.914 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * 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 (25): * Single equations (assignments): 23 * 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.00176/0.5357, allocations: 1.233 MB / 496.3 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006582/0.5364, allocations: 310.5 kB / 496.6 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5364, allocations: 0 / 496.6 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.5366, allocations: 92.34 kB / 496.7 MB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.5371, allocations: 97.77 kB / 496.8 MB, free: 284 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.5385, allocations: 0.6693 MB / 497.5 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.5389, allocations: 0.8117 MB / 498.3 MB, free: 14.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.5391, allocations: 42.95 kB / 498.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.5393, allocations: 127.4 kB / 498.5 MB, free: 14.56 MB / 378.7 MB Notification: Performance of SimCode: time 4.8e-07/0.5393, allocations: 4 kB / 498.5 MB, free: 14.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.5646, allocations: 9.315 MB / 0.4959 GB, free: 5.422 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.5648, allocations: 222.7 kB / 0.4961 GB, free: 5.191 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/2.757, allocations: 0 / 0.4961 GB, free: 5.191 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat