Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_3_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.001316/0.001316, allocations: 177.5 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.925/1.925, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008646/0.0008646, allocations: 78.72 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.146e-05/2.147e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5521, allocations: 81.15 MB / 444.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/0.5525, allocations: 69.77 kB / 444.4 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0361/0.5887, allocations: 9.969 MB / 454.3 MB, free: 6.066 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5887, allocations: 0 / 454.3 MB, free: 6.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.704e-05/0.5888, allocations: 8 kB / 454.4 MB, free: 6.059 MB / 330.7 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.001667/0.5904, allocations: 0.7362 MB / 455.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.517e-05/0.5905, allocations: 8.031 kB / 455.1 MB, free: 5.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.5907, allocations: 63.34 kB / 455.2 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007864/0.5915, allocations: 393.1 kB / 455.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.5916, allocations: 50.81 kB / 455.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-05/0.5917, allocations: 19.95 kB / 455.6 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006648/0.5924, allocations: 255.6 kB / 455.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008267/0.5932, allocations: 403.1 kB / 456.3 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.5933, allocations: 0 / 456.3 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.802e-05/0.5933, allocations: 4 kB / 456.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.5934, allocations: 4 kB / 456.3 MB, free: 4.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.5961, allocations: 1.207 MB / 457.5 MB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006661/0.5968, allocations: 357.5 kB / 457.8 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.5971, allocations: 137.5 kB / 458 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.915e-05/0.5972, allocations: 7.953 kB / 458 MB, free: 2.891 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.5973, allocations: 48.8 kB / 458 MB, free: 2.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.264e-06/0.5973, allocations: 0 / 458 MB, free: 2.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001021/0.5983, allocations: 352.8 kB / 458.4 MB, free: 2.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002754/0.5986, allocations: 448.1 kB / 458.8 MB, free: 2.027 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005513/0.5991, allocations: 355.3 kB / 459.1 MB, free: 1.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.5992, allocations: 25.7 kB / 459.2 MB, free: 1.719 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.5994, allocations: 250.2 kB / 459.4 MB, free: 1.551 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.5996, allocations: 120 kB / 459.5 MB, free: 1.445 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.5996, allocations: 0 / 459.5 MB, free: 1.445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.5999, allocations: 360.1 kB / 459.9 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.6001, allocations: 95.5 kB / 460 MB, free: 1.051 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/0.6005, allocations: 240.9 kB / 460.2 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.6008, allocations: 121 kB / 460.3 MB, free: 0.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6008, allocations: 4 kB / 460.3 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009403/0.6018, allocations: 382 kB / 460.7 MB, free: 464 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.6019, allocations: 29.7 kB / 460.7 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.6019, allocations: 8 kB / 460.7 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003464/0.6022, allocations: 56.5 kB / 460.8 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/0.6028, allocations: 95.84 kB / 460.9 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.6058, allocations: 2.63 MB / 463.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005324/0.6063, allocations: 51.75 kB / 463.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.6064, allocations: 12.22 kB / 463.6 MB, free: 13.51 MB / 346.7 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.0002452/0.6066, allocations: 112.9 kB / 463.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000881/0.6075, allocations: 356.8 kB / 464 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.6077, allocations: 47.44 kB / 464.1 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.6078, allocations: 50.78 kB / 464.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.6078, allocations: 4 kB / 464.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.145e-06/0.6079, allocations: 3.938 kB / 464.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008166/0.6087, allocations: 0.6505 MB / 464.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.6104, allocations: 0.8963 MB / 465.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.6104, allocations: 4 kB / 465.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/0.6111, allocations: 102.7 kB / 465.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.6111, allocations: 4 kB / 465.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.6111, allocations: 0 / 465.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.323e-06/0.6112, allocations: 4 kB / 465.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6112, allocations: 4 kB / 465.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009729/0.6121, allocations: 0.529 MB / 466.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002494/0.6124, allocations: 161.8 kB / 466.5 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.187e-05/0.6125, allocations: 7.953 kB / 466.5 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004362/0.6129, allocations: 32.03 kB / 466.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.467e-05/0.6131, allocations: 23.33 kB / 466.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-05/0.6131, allocations: 11.25 kB / 466.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004113/0.6135, allocations: 278.5 kB / 466.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6135, allocations: 0 / 466.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006865/0.6142, allocations: 139.7 kB / 467 MB, free: 10.54 MB / 346.7 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.001352/0.6156, allocations: 1.089 MB / 468.1 MB, free: 9.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.6166, allocations: 0.5378 MB / 468.6 MB, free: 9.102 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.6166, allocations: 4 kB / 468.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.6169, allocations: 143.4 kB / 468.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007777/0.6177, allocations: 115.3 kB / 468.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.6198, allocations: 0.7047 MB / 469.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/0.6203, allocations: 0.8351 MB / 470.4 MB, free: 7.367 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003349/0.6206, allocations: 64.14 kB / 470.5 MB, free: 7.301 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.6209, allocations: 161 kB / 470.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.621, allocations: 0 / 470.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04561/0.6666, allocations: 10.59 MB / 481.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.6668, allocations: 142.6 kB / 481.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.879, allocations: 0 / 481.3 MB, free: 12.46 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat