Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.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.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009437/0.000944, allocations: 95.11 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002492, allocations: 8 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1114, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.279/0.3904, allocations: 54.97 MB / 413.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03086/0.4214, allocations: 23.94 MB / 437.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.4231, allocations: 51.56 kB / 437.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.4249, allocations: 0.6221 MB / 437.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01415/0.439, allocations: 5.197 MB / 443 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008926/0.448, allocations: 3.309 MB / 446.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003388/0.4514, allocations: 2.152 MB / 448.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.4525, allocations: 0.8855 MB / 449.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01483/0.4673, allocations: 9.543 MB / 458.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02419/0.4915, allocations: 15.14 MB / 474 MB, free: 7.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004344/0.492, allocations: 75.98 kB / 474.1 MB, free: 7.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01862/0.5107, allocations: 8.615 MB / 482.7 MB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008321/0.5115, allocations: 386.8 kB / 483.1 MB, free: 14.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007924/0.5123, allocations: 324.9 kB / 483.4 MB, free: 14.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00987/0.5222, allocations: 4.783 MB / 488.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.5222, allocations: 0 / 488.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5223, allocations: 0 / 488.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.5223, allocations: 4 kB / 488.2 MB, free: 9.605 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.005954/0.5282, allocations: 2.372 MB / 490.5 MB, free: 7.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.5283, allocations: 12.03 kB / 490.5 MB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000241/0.5285, allocations: 189.6 kB / 490.7 MB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/0.5316, allocations: 481.7 kB / 491.2 MB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001619/0.5332, allocations: 0.8675 MB / 492.1 MB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.5334, allocations: 183.4 kB / 492.2 MB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.5336, allocations: 112 kB / 492.4 MB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003844/0.5374, allocations: 1.996 MB / 494.4 MB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.5375, allocations: 4 kB / 494.4 MB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.5376, allocations: 55.94 kB / 494.4 MB, free: 3.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.5377, allocations: 82.08 kB / 494.5 MB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003509/0.5413, allocations: 1.78 MB / 496.3 MB, free: 1.227 MB / 398.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.01197/0.5532, allocations: 9.216 MB / 0.4936 GB, free: 7.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003045/0.5563, allocations: 1.504 MB / 0.4951 GB, free: 5.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3402/0.8965, allocations: 71.29 MB / 0.5647 GB, free: 125.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002637/0.8992, allocations: 1.055 MB / 0.5658 GB, free: 125 MB / 446.1 MB Notification: Performance of pre-optimization done (n=110): time 3.817e-06/0.8992, allocations: 0 / 0.5658 GB, free: 125 MB / 446.1 MB Notification: Performance of matching and sorting (n=121): time 0.01528/0.9145, allocations: 6.56 MB / 0.5722 GB, free: 120.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.9146, allocations: 299.9 kB / 0.5724 GB, free: 120.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009912/0.9156, allocations: 1.04 MB / 0.5735 GB, free: 119.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.936e-05/0.9157, allocations: 49.7 kB / 0.5735 GB, free: 119 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.916, allocations: 0.5686 MB / 0.5741 GB, free: 118.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.9162, allocations: 413.7 kB / 0.5745 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.789e-05/0.9163, allocations: 28 kB / 0.5745 GB, free: 118 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.9164, allocations: 361 kB / 0.5748 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008891/0.9173, allocations: 0.6441 MB / 0.5755 GB, free: 117 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.9184, allocations: 1.038 MB / 0.5765 GB, free: 115.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.9193, allocations: 0.7362 MB / 0.5772 GB, free: 115.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.9194, allocations: 6.578 kB / 0.5772 GB, free: 115.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003046/0.9224, allocations: 2.168 MB / 0.5793 GB, free: 112.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007025/0.9231, allocations: 4.449 MB / 0.5837 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.9232, allocations: 9.641 kB / 0.5837 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005731/0.9289, allocations: 1.013 MB / 0.5847 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.93, allocations: 307.5 kB / 0.585 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/0.9325, allocations: 4.027 MB / 0.5889 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.9339, allocations: 127.8 kB / 0.589 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.934, allocations: 67.98 kB / 0.5891 GB, free: 102.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.934, allocations: 4 kB / 0.5891 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003056/0.9371, allocations: 1.972 MB / 0.591 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.9371, allocations: 12 kB / 0.591 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005153/0.9423, allocations: 0.8925 MB / 0.5919 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.9434, allocations: 299.5 kB / 0.5922 GB, free: 99.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.9455, allocations: 3.37 MB / 0.5955 GB, free: 95.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.9469, allocations: 119.8 kB / 0.5956 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/0.947, allocations: 74.98 kB / 0.5956 GB, free: 95.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008407/0.9479, allocations: 469.2 kB / 0.5961 GB, free: 95.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002976/0.9482, allocations: 134.4 kB / 0.5962 GB, free: 94.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0056/0.9538, allocations: 4.93 MB / 0.601 GB, free: 89.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/0.9539, allocations: 48.92 kB / 0.6011 GB, free: 89.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.9539, allocations: 0 / 0.6011 GB, free: 89.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.9539, allocations: 11.97 kB / 0.6011 GB, free: 89.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007198/0.9611, allocations: 6.74 MB / 0.6077 GB, free: 83.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.9611, allocations: 0 / 0.6077 GB, free: 83.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006807/0.9618, allocations: 175.7 kB / 0.6078 GB, free: 82.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003719/0.9656, allocations: 1.389 MB / 0.6092 GB, free: 81.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.9657, allocations: 35.97 kB / 0.6092 GB, free: 81.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/0.9683, allocations: 4.462 MB / 0.6136 GB, free: 76.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.9684, allocations: 4.031 kB / 0.6136 GB, free: 76.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005275/0.9736, allocations: 4.928 MB / 0.6184 GB, free: 71.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009004/0.9746, allocations: 0.5482 MB / 0.6189 GB, free: 71.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.9749, allocations: 28 kB / 0.619 GB, free: 71.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.976, allocations: 103.8 kB / 0.6191 GB, free: 71.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.9762, allocations: 121.1 kB / 0.6192 GB, free: 71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.882e-05/0.9763, allocations: 51.97 kB / 0.6192 GB, free: 70.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.9775, allocations: 0.9807 MB / 0.6202 GB, free: 69.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9776, allocations: 0.8438 kB / 0.6202 GB, free: 69.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005565/0.9831, allocations: 1.948 MB / 0.6221 GB, free: 68.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.level,reservoir.medium.T,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01259/0.9957, allocations: 7.115 MB / 0.629 GB, free: 61.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00637/1.002, allocations: 3.121 MB / 0.6321 GB, free: 58.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.002, allocations: 0 / 0.6321 GB, free: 58.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002462/1.005, allocations: 1.519 MB / 0.6336 GB, free: 56.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003349/1.008, allocations: 0.6429 MB / 0.6342 GB, free: 55.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/1.022, allocations: 14.75 MB / 0.6486 GB, free: 40.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009037/1.023, allocations: 1.537 MB / 0.6501 GB, free: 39.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002476/1.026, allocations: 1.296 MB / 0.6514 GB, free: 37.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007871/1.026, allocations: 0.7648 MB / 0.6521 GB, free: 37.13 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/1.026, allocations: 3.938 kB / 0.6521 GB, free: 37.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3127/1.339, allocations: 86.66 MB / 0.7368 GB, free: 104.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/1.339, allocations: 228.6 kB / 0.737 GB, free: 104.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.442/6.781, allocations: 8 kB / 0.737 GB, free: 104.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat does not exist to compare? outputFormat=mat