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.001532/0.001532, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009426/0.0009429, allocations: 93.97 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.397e-05/3.4e-05, allocations: 7.984 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1538, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.6367, allocations: 83.48 MB / 485.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.6369, allocations: 71.09 kB / 485.7 MB, free: 5.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03597/0.6729, allocations: 13.94 MB / 499.6 MB, free: 9.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.673, allocations: 0 / 499.6 MB, free: 9.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.478e-05/0.673, allocations: 19.98 kB / 499.6 MB, free: 9.633 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.001656/0.6747, allocations: 0.8989 MB / 0.4888 GB, free: 8.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.6747, allocations: 8.031 kB / 0.4888 GB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.6749, allocations: 91.42 kB / 0.4889 GB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/0.6752, allocations: 91.05 kB / 0.489 GB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.6759, allocations: 456.6 kB / 0.4894 GB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.6761, allocations: 108 kB / 0.4895 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.6762, allocations: 44 kB / 0.4896 GB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009662/0.6771, allocations: 0.6093 MB / 0.4902 GB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.6772, allocations: 4 kB / 0.4902 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.675e-05/0.6772, allocations: 24 kB / 0.4902 GB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.6773, allocations: 16 kB / 0.4902 GB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007024/0.678, allocations: 383.9 kB / 0.4906 GB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.6812, allocations: 1.909 MB / 0.4924 GB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.6831, allocations: 0.6679 MB / 0.4931 GB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.6835, allocations: 238.5 kB / 0.4933 GB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.6835, allocations: 16.55 kB / 0.4933 GB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.6836, allocations: 47.09 kB / 0.4934 GB, free: 3.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.385e-06/0.6836, allocations: 0 / 0.4934 GB, free: 3.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001951/0.6856, allocations: 0.6972 MB / 0.494 GB, free: 3.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002957/0.6859, allocations: 0.5684 MB / 0.4946 GB, free: 2.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006468/0.6865, allocations: 481 kB / 0.4951 GB, free: 1.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.686e-05/0.6866, allocations: 37.7 kB / 0.4951 GB, free: 1.797 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.6868, allocations: 280.7 kB / 0.4954 GB, free: 1.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.687, allocations: 193.1 kB / 0.4956 GB, free: 1.328 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.6871, allocations: 12 kB / 0.4956 GB, free: 1.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.6872, allocations: 374.8 kB / 0.4959 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.6875, allocations: 161.1 kB / 0.4961 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004741/0.688, allocations: 381.4 kB / 0.4964 GB, free: 344 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.6884, allocations: 219.5 kB / 0.4966 GB, free: 120 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.6884, allocations: 4 kB / 0.4967 GB, free: 116 kB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001933/0.6904, allocations: 0.7872 MB / 0.4974 GB, free: 15.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.472e-05/0.6904, allocations: 29.7 kB / 0.4974 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.6905, allocations: 4 kB / 0.4975 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009131/0.6914, allocations: 211.6 kB / 0.4977 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007824/0.6922, allocations: 143.8 kB / 0.4978 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.6986, allocations: 5.007 MB / 0.5027 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00091/0.6996, allocations: 83.73 kB / 0.5028 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.6996, allocations: 16 kB / 0.5028 GB, free: 9.406 MB / 378.7 MB 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.0002177/0.6998, allocations: 151.1 kB / 0.5029 GB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.7, allocations: 75.14 kB / 0.503 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.702, allocations: 0.7498 MB / 0.5037 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.702, allocations: 4 kB / 0.5037 GB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.702, allocations: 0 / 0.5037 GB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001683/0.7037, allocations: 0.9892 MB / 0.5047 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.7066, allocations: 1.467 MB / 0.5061 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7066, allocations: 0 / 0.5061 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007951/0.7074, allocations: 139.8 kB / 0.5063 GB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006415/0.7081, allocations: 157.5 kB / 0.5064 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.7081, allocations: 15.98 kB / 0.5064 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004314/0.7125, allocations: 3.402 MB / 0.5097 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.7125, allocations: 0 / 0.5097 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.7147, allocations: 0.9925 MB / 0.5107 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.7151, allocations: 200.1 kB / 0.5109 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.488e-05/0.7152, allocations: 16.22 kB / 0.5109 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004337/0.7156, allocations: 47.97 kB / 0.511 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.7158, allocations: 40.45 kB / 0.511 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.7158, allocations: 23.97 kB / 0.511 GB, free: 440 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005214/0.7163, allocations: 375.5 kB / 0.5114 GB, free: 68 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7163, allocations: 0 / 0.5114 GB, free: 68 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008453/0.7172, allocations: 235.7 kB / 0.5116 GB, free: 15.83 MB / 394.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.002512/0.7197, allocations: 1.564 MB / 0.5131 GB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.7216, allocations: 0.909 MB / 0.514 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7216, allocations: 4.25 kB / 0.514 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008698/0.7225, allocations: 0.5041 MB / 0.5145 GB, free: 12.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008608/0.7233, allocations: 172.2 kB / 0.5147 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.7256, allocations: 1.026 MB / 0.5157 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.7261, allocations: 0.9113 MB / 0.5166 GB, free: 10.58 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003534/0.7265, allocations: 77.12 kB / 0.5167 GB, free: 10.51 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.7268, allocations: 231.4 kB / 0.5169 GB, free: 10.28 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7268, allocations: 0 / 0.5169 GB, free: 10.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04303/0.7699, allocations: 17.97 MB / 0.5344 GB, free: 8.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/0.7702, allocations: 181.7 kB / 0.5346 GB, free: 8.508 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.48, allocations: 0 / 0.5346 GB, free: 8.508 MB / 410.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