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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008766/0.0008766, allocations: 92.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009052/0.0009053, allocations: 204.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002076/0.0002076, allocations: 8 kB / 306.7 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1006, allocations: 51.49 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004304/0.105, allocations: 3.491 MB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002456/0.1075, allocations: 1.169 MB / 362.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.1078, allocations: 7.938 kB / 362.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.108, allocations: 87.36 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005925/0.1086, allocations: 283.2 kB / 363.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.109, allocations: 147.8 kB / 363.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008549/0.1099, allocations: 0.6354 MB / 364 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003069/0.1102, allocations: 204.7 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/0.1106, allocations: 310.9 kB / 364.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.111, allocations: 338.6 kB / 364.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.247e-05/0.1111, allocations: 44 kB / 364.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1112, allocations: 48 kB / 364.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.1114, allocations: 131.5 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.1115, allocations: 165.3 kB / 365.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005667/0.1121, allocations: 0.6349 MB / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1121, allocations: 4 kB / 365.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1121, allocations: 0 / 365.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1121, allocations: 0 / 365.9 MB, free: 6.043 MB / 302.1 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.001731/0.1139, allocations: 0.9962 MB / 366.9 MB, free: 4.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1139, allocations: 8.031 kB / 366.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001699/0.1141, allocations: 99.42 kB / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.1144, allocations: 91.05 kB / 367 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007105/0.1151, allocations: 431.7 kB / 367.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.1153, allocations: 104.3 kB / 367.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.056e-05/0.1154, allocations: 44 kB / 367.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.1165, allocations: 0.6639 MB / 368.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.1165, allocations: 0 / 368.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.634e-05/0.1166, allocations: 24 kB / 368.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1166, allocations: 12 kB / 368.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1176, allocations: 471.7 kB / 368.8 MB, free: 2.93 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003067/0.1207, allocations: 1.959 MB / 370.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.1226, allocations: 0.7449 MB / 371.5 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.1227, allocations: 8.438 kB / 371.5 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.1227, allocations: 47 kB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.234e-06/0.1227, allocations: 0.5625 kB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.1805/0.3033, allocations: 1.589 MB / 373.1 MB, free: 19.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.3034, allocations: 0.5627 MB / 373.7 MB, free: 18.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006329/0.3041, allocations: 0.4933 MB / 374.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.075e-05/0.3041, allocations: 40.77 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.3043, allocations: 288.4 kB / 374.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.3045, allocations: 186 kB / 374.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.3045, allocations: 12.62 kB / 374.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3046, allocations: 375.3 kB / 375.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.3052, allocations: 206.1 kB / 375.3 MB, free: 17.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007471/0.3059, allocations: 428.3 kB / 375.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00068/0.3066, allocations: 269.4 kB / 375.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3067, allocations: 0 / 375.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002436/0.3091, allocations: 0.8632 MB / 376.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.3091, allocations: 36.33 kB / 376.8 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.3092, allocations: 6.031 kB / 376.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.3102, allocations: 227.7 kB / 377.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.311, allocations: 138 kB / 377.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/0.3179, allocations: 5.303 MB / 382.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008491/0.3188, allocations: 85.81 kB / 382.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.3189, allocations: 19.75 kB / 382.6 MB, free: 12.71 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * 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.0002887/0.3192, allocations: 195.4 kB / 382.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.3193, allocations: 75.5 kB / 382.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.3217, allocations: 0.8199 MB / 383.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3217, allocations: 8.297 kB / 383.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3217, allocations: 0 / 383.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002089/0.3238, allocations: 1.08 MB / 384.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.3271, allocations: 1.523 MB / 386.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3271, allocations: 3.938 kB / 386.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000795/0.3279, allocations: 136.1 kB / 386.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008413/0.3288, allocations: 183.3 kB / 386.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.3288, allocations: 13.53 kB / 386.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004617/0.3335, allocations: 3.595 MB / 390.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3335, allocations: 3.938 kB / 390.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003127/0.3366, allocations: 1.132 MB / 391.4 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.3369, allocations: 196.7 kB / 391.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.696e-05/0.337, allocations: 13.98 kB / 391.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.3375, allocations: 41.89 kB / 391.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3377, allocations: 49.14 kB / 391.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.3377, allocations: 20.16 kB / 391.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004119/0.3381, allocations: 351.1 kB / 392 MB, free: 6.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3381, allocations: 0 / 392 MB, free: 6.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008378/0.339, allocations: 217.1 kB / 392.2 MB, free: 6.684 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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.002994/0.342, allocations: 1.683 MB / 393.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.3442, allocations: 1.067 MB / 395 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3443, allocations: 5.656 kB / 395 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009022/0.3452, allocations: 0.5454 MB / 395.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007534/0.3459, allocations: 171.2 kB / 395.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.3485, allocations: 2.575 MB / 398.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3488, allocations: 0.8996 MB / 399.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003237/0.3492, allocations: 77.78 kB / 399.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.3494, allocations: 227.5 kB / 399.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3494, allocations: 0 / 399.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06532/0.4148, allocations: 17.17 MB / 416.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/0.415, allocations: 210.1 kB / 416.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/2.759, allocations: 4 kB / 416.9 MB, free: 2.789 MB / 318.1 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