Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001595/0.001595, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007903/0.0007904, allocations: 89.5 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.101e-05/1.104e-05, allocations: 0 / 343.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1278, allocations: 51.47 MB / 395.3 MB, free: 4.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5418/0.6697, allocations: 82.8 MB / 478.1 MB, free: 9.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.6699, allocations: 73.7 kB / 478.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03274/0.7026, allocations: 13.8 MB / 491.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.7027, allocations: 0 / 491.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.28e-05/0.7028, allocations: 12 kB / 491.9 MB, free: 14.89 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001995/0.7048, allocations: 0.9112 MB / 492.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.48e-05/0.7048, allocations: 8.031 kB / 492.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004294/0.7053, allocations: 95.05 kB / 493 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008809/0.7062, allocations: 447 kB / 493.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.7064, allocations: 84.7 kB / 493.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.444e-05/0.7065, allocations: 35.11 kB / 493.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006744/0.7071, allocations: 358.8 kB / 493.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000867/0.708, allocations: 0.5397 MB / 494.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.7081, allocations: 0 / 494.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.7081, allocations: 4 kB / 494.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.7081, allocations: 8 kB / 494.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.7115, allocations: 1.81 MB / 496.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.7133, allocations: 0.6406 MB / 496.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.7136, allocations: 214.5 kB / 497.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.7137, allocations: 12.55 kB / 497.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.7137, allocations: 55.69 kB / 497.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.736e-06/0.7137, allocations: 0 / 497.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001875/0.7156, allocations: 0.6547 MB / 497.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002658/0.7159, allocations: 0.5677 MB / 498.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.7164, allocations: 413.2 kB / 498.8 MB, free: 8.883 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.862e-05/0.7165, allocations: 29.7 kB / 498.8 MB, free: 8.848 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.7167, allocations: 281.5 kB / 499.1 MB, free: 8.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.7169, allocations: 193.6 kB / 499.3 MB, free: 8.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.7169, allocations: 0 / 499.3 MB, free: 8.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.7171, allocations: 366.7 kB / 499.6 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.7174, allocations: 152.4 kB / 499.8 MB, free: 8.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.7178, allocations: 353.3 kB / 0.4884 GB, free: 7.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.7182, allocations: 182.4 kB / 0.4886 GB, free: 7.617 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.7182, allocations: 0 / 0.4886 GB, free: 7.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00185/0.7201, allocations: 0.7103 MB / 0.4893 GB, free: 7.047 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.7201, allocations: 29.7 kB / 0.4893 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.7201, allocations: 0 / 0.4893 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009262/0.7211, allocations: 206.4 kB / 0.4895 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007769/0.7219, allocations: 148.3 kB / 0.4896 GB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/0.7274, allocations: 4.857 MB / 0.4944 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007076/0.7282, allocations: 71.61 kB / 0.4944 GB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.428e-05/0.7282, allocations: 23.92 kB / 0.4945 GB, free: 1.945 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003039/0.7286, allocations: 125.2 kB / 0.4946 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001741/0.7303, allocations: 0.6545 MB / 0.4952 GB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.7305, allocations: 67.25 kB / 0.4953 GB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.7324, allocations: 0.6988 MB / 0.496 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.7324, allocations: 7.953 kB / 0.496 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.7324, allocations: 4 kB / 0.496 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001614/0.734, allocations: 0.9491 MB / 0.4969 GB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.7368, allocations: 1.358 MB / 0.4982 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.7369, allocations: 0 / 0.4982 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000789/0.7377, allocations: 139.8 kB / 0.4984 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006515/0.7383, allocations: 156.3 kB / 0.4985 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/0.7384, allocations: 8 kB / 0.4985 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.7428, allocations: 3.291 MB / 0.5017 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.7429, allocations: 3.953 kB / 0.5017 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.7451, allocations: 0.9412 MB / 0.5026 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/0.7455, allocations: 196.2 kB / 0.5028 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.363e-05/0.7456, allocations: 7.891 kB / 0.5028 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/0.746, allocations: 31.97 kB / 0.5029 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.7461, allocations: 48.5 kB / 0.5029 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.7462, allocations: 15.98 kB / 0.5029 GB, free: 9.164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005291/0.7467, allocations: 323 kB / 0.5032 GB, free: 8.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7467, allocations: 0 / 0.5032 GB, free: 8.852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009207/0.7477, allocations: 207.7 kB / 0.5034 GB, free: 8.648 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002314/0.75, allocations: 1.498 MB / 0.5049 GB, free: 7.113 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.7515, allocations: 0.8691 MB / 0.5058 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.7515, allocations: 0 / 0.5058 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.7523, allocations: 489.3 kB / 0.5062 GB, free: 5.711 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/0.753, allocations: 152.3 kB / 0.5064 GB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.755, allocations: 0.9682 MB / 0.5073 GB, free: 4.559 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.7555, allocations: 0.8996 MB / 0.5082 GB, free: 3.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003221/0.7559, allocations: 72.89 kB / 0.5083 GB, free: 3.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.7562, allocations: 223.4 kB / 0.5085 GB, free: 3.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.7562, allocations: 0 / 0.5085 GB, free: 3.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04161/0.7978, allocations: 16.09 MB / 0.5242 GB, free: 3.492 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/0.7981, allocations: 142.9 kB / 0.5243 GB, free: 3.305 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.295, allocations: 0 / 0.5243 GB, free: 3.305 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat