Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00243/0.00243, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.154/2.154, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001325/0.001325, allocations: 86.55 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.378e-05/2.385e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 47.56 MB / 362.4 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.4862, allocations: 80.9 MB / 443.3 MB, free: 5.395 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.4866, allocations: 71.91 kB / 443.4 MB, free: 5.324 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04612/0.5327, allocations: 9.961 MB / 453.4 MB, free: 11.35 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5328, allocations: 4 kB / 453.4 MB, free: 11.35 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.605e-05/0.5329, allocations: 12 kB / 453.4 MB, free: 11.34 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0022/0.5351, allocations: 0.7343 MB / 454.1 MB, free: 10.55 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.504e-05/0.5352, allocations: 12.03 kB / 454.1 MB, free: 10.54 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.5355, allocations: 59.34 kB / 454.2 MB, free: 10.48 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009593/0.5365, allocations: 390.7 kB / 454.6 MB, free: 10.06 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5366, allocations: 50.83 kB / 454.6 MB, free: 10 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.773e-05/0.5367, allocations: 23.95 kB / 454.6 MB, free: 9.98 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008098/0.5376, allocations: 261.4 kB / 454.9 MB, free: 9.727 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008993/0.5385, allocations: 397.3 kB / 455.3 MB, free: 9.281 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.5385, allocations: 0 / 455.3 MB, free: 9.281 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.5386, allocations: 0 / 455.3 MB, free: 9.281 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.5386, allocations: 8 kB / 455.3 MB, free: 9.273 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.5423, allocations: 1.214 MB / 456.5 MB, free: 7.992 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000776/0.5431, allocations: 346.8 kB / 456.8 MB, free: 7.629 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003542/0.5435, allocations: 141.7 kB / 457 MB, free: 7.488 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.09e-05/0.5436, allocations: 7.953 kB / 457 MB, free: 7.48 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.5436, allocations: 38.56 kB / 457 MB, free: 7.434 MB / 347.1 MB Notification: Performance of pre-optimization done (n=36): time 4.238e-06/0.5436, allocations: 4 kB / 457 MB, free: 7.43 MB / 347.1 MB Notification: Performance of matching and sorting (n=36): time 0.001293/0.5449, allocations: 358.9 kB / 457.4 MB, free: 7.066 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000207/0.5452, allocations: 445 kB / 457.8 MB, free: 6.527 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006907/0.5459, allocations: 357.2 kB / 458.2 MB, free: 6.168 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/0.546, allocations: 29.7 kB / 458.2 MB, free: 6.133 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.5462, allocations: 279.1 kB / 458.5 MB, free: 5.859 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.5464, allocations: 126 kB / 458.6 MB, free: 5.734 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.5464, allocations: 4 kB / 458.6 MB, free: 5.73 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.5466, allocations: 326.8 kB / 458.9 MB, free: 5.402 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.5469, allocations: 100 kB / 459 MB, free: 5.305 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004835/0.5474, allocations: 234.4 kB / 459.2 MB, free: 5.023 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.5477, allocations: 119.5 kB / 459.4 MB, free: 4.91 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5478, allocations: 0 / 459.4 MB, free: 4.91 MB / 347.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001129/0.5489, allocations: 354.7 kB / 459.7 MB, free: 4.551 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.422e-05/0.549, allocations: 32.36 kB / 459.7 MB, free: 4.516 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.549, allocations: 0 / 459.7 MB, free: 4.516 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003848/0.5494, allocations: 59.78 kB / 459.8 MB, free: 4.453 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007979/0.5502, allocations: 91.97 kB / 459.9 MB, free: 4.363 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003066/0.5533, allocations: 2.64 MB / 462.5 MB, free: 1.492 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008061/0.5542, allocations: 55.7 kB / 462.6 MB, free: 1.438 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.178e-05/0.5542, allocations: 15.94 kB / 462.6 MB, free: 1.422 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.5545, allocations: 115.3 kB / 462.7 MB, free: 1.305 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001132/0.5557, allocations: 358.5 kB / 463.1 MB, free: 0.9414 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.5558, allocations: 47.44 kB / 463.1 MB, free: 0.8945 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.556, allocations: 52.95 kB / 463.2 MB, free: 0.8398 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.556, allocations: 4 kB / 463.2 MB, free: 0.8359 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.556, allocations: 0 / 463.2 MB, free: 0.8359 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008478/0.5569, allocations: 0.6458 MB / 463.8 MB, free: 84 kB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.559, allocations: 0.8925 MB / 464.7 MB, free: 15.14 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.5591, allocations: 4 kB / 464.7 MB, free: 15.13 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009051/0.56, allocations: 99.83 kB / 464.8 MB, free: 15.04 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.56, allocations: 0 / 464.8 MB, free: 15.04 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.5601, allocations: 7.984 kB / 464.8 MB, free: 15.03 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.5601, allocations: 0 / 464.8 MB, free: 15.03 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5601, allocations: 4 kB / 464.8 MB, free: 15.02 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.5614, allocations: 0.5354 MB / 465.3 MB, free: 14.47 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.5617, allocations: 164.5 kB / 465.5 MB, free: 14.29 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.801e-05/0.5619, allocations: 7.953 kB / 465.5 MB, free: 14.29 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.5624, allocations: 19.98 kB / 465.5 MB, free: 14.27 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.5626, allocations: 32.02 kB / 465.6 MB, free: 14.23 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.5626, allocations: 8 kB / 465.6 MB, free: 14.23 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0005317/0.5632, allocations: 283 kB / 465.8 MB, free: 13.95 MB / 363.1 MB Notification: Performance of sort global known variables: time 2.605e-06/0.5632, allocations: 0 / 465.8 MB, free: 13.95 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007661/0.5639, allocations: 139.6 kB / 466 MB, free: 13.82 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.001648/0.5656, allocations: 1.084 MB / 467.1 MB, free: 12.71 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.5669, allocations: 0.5377 MB / 467.6 MB, free: 12.14 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.567, allocations: 0 / 467.6 MB, free: 12.14 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.5673, allocations: 143.7 kB / 467.7 MB, free: 12 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.5684, allocations: 123.7 kB / 467.9 MB, free: 11.88 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.5708, allocations: 0.7323 MB / 468.6 MB, free: 11.11 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005235/0.5714, allocations: 0.839 MB / 469.4 MB, free: 10.24 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/0.5719, allocations: 167.4 kB / 469.6 MB, free: 10.08 MB / 363.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5719, allocations: 0 / 469.6 MB, free: 10.08 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.039/3.611, allocations: 10.31 MB / 479.9 MB, free: 15.8 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat