Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.665/1.665, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000982/0.0009817, allocations: 113.9 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5043/0.5043, allocations: 45.24 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003145, allocations: 8 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.449/0.4494, allocations: 63.25 MB / 0.5193 GB, free: 37.54 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.303/8.753, allocations: 2.788 GB / 3.307 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/8.753, allocations: 97.09 kB / 3.308 GB, free: 101 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.682/10.44, allocations: 445.1 MB / 3.742 GB, free: 64.55 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.706e-06/10.44, allocations: 0 / 3.742 GB, free: 64.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.785e-05/10.44, allocations: 19.75 kB / 3.742 GB, free: 64.54 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008449/10.44, allocations: 1.841 MB / 3.744 GB, free: 63.44 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/10.44, allocations: 7.906 kB / 3.744 GB, free: 63.44 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/10.44, allocations: 102.3 kB / 3.744 GB, free: 63.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002476/10.45, allocations: 330.3 kB / 3.744 GB, free: 63.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/10.45, allocations: 0.5733 MB / 3.745 GB, free: 62.92 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.873e-05/10.45, allocations: 49.2 kB / 3.745 GB, free: 62.9 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.241e-05/10.45, allocations: 58.5 kB / 3.745 GB, free: 62.88 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/10.45, allocations: 1.003 MB / 3.746 GB, free: 62.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/10.45, allocations: 3.938 kB / 3.746 GB, free: 62.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-05/10.45, allocations: 27.55 kB / 3.746 GB, free: 62.43 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/10.45, allocations: 20 kB / 3.746 GB, free: 62.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002152/10.45, allocations: 0.9035 MB / 3.747 GB, free: 62.21 MB / 0.5417 GB 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.004321/10.46, allocations: 4.525 MB / 3.751 GB, free: 58.41 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/10.46, allocations: 0.8001 MB / 3.752 GB, free: 58.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09863/10.56, allocations: 61.82 MB / 3.813 GB, free: 27.68 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/10.56, allocations: 42.52 kB / 3.813 GB, free: 27.63 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=48): time 3.065e-06/10.56, allocations: 0 / 3.813 GB, free: 27.63 MB / 0.5573 GB Notification: Performance of matching and sorting (n=52): time 0.007066/10.56, allocations: 2.247 MB / 3.815 GB, free: 25.66 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.429e-05/10.56, allocations: 111.2 kB / 3.815 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006163/10.57, allocations: 456.4 kB / 3.815 GB, free: 25.12 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.584e-05/10.57, allocations: 37.7 kB / 3.815 GB, free: 25.08 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/10.57, allocations: 332.2 kB / 3.816 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/10.57, allocations: 183.9 kB / 3.816 GB, free: 24.62 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/10.57, allocations: 8 kB / 3.816 GB, free: 24.61 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000173/10.57, allocations: 368.3 kB / 3.816 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006007/10.57, allocations: 265.6 kB / 3.817 GB, free: 24.04 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006234/10.57, allocations: 432 kB / 3.817 GB, free: 23.61 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006172/10.57, allocations: 307 kB / 3.817 GB, free: 23.34 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/10.57, allocations: 7.938 kB / 3.817 GB, free: 23.33 MB / 0.5573 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002113/10.57, allocations: 0.9628 MB / 3.818 GB, free: 22.48 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007027/10.57, allocations: 1.744 MB / 3.82 GB, free: 20.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/10.57, allocations: 4 kB / 3.82 GB, free: 20.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/10.57, allocations: 427.3 kB / 3.82 GB, free: 20.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/10.57, allocations: 134.6 kB / 3.82 GB, free: 20.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/10.57, allocations: 0.9196 MB / 3.821 GB, free: 19.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007612/10.58, allocations: 94.59 kB / 3.821 GB, free: 19.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-05/10.58, allocations: 35.33 kB / 3.821 GB, free: 19.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/10.58, allocations: 4 kB / 3.821 GB, free: 19.18 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002462/10.58, allocations: 0.9269 MB / 3.822 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/10.58, allocations: 4.438 kB / 3.822 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/10.58, allocations: 337.3 kB / 3.823 GB, free: 18.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/10.58, allocations: 141 kB / 3.823 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/10.58, allocations: 0.887 MB / 3.824 GB, free: 17.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/10.58, allocations: 93.88 kB / 3.824 GB, free: 17.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.136e-05/10.58, allocations: 31.94 kB / 3.824 GB, free: 17.06 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.000462/10.58, allocations: 288.2 kB / 3.824 GB, free: 16.78 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/10.58, allocations: 63.25 kB / 3.824 GB, free: 16.71 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/10.59, allocations: 2.908 MB / 3.827 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/10.59, allocations: 42.47 kB / 3.827 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/10.59, allocations: 4 kB / 3.827 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/10.59, allocations: 3.844 kB / 3.827 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004944/10.59, allocations: 4.08 MB / 3.831 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/10.59, allocations: 3.5 kB / 3.831 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007796/10.59, allocations: 164.3 kB / 3.831 GB, free: 10.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/10.59, allocations: 75.56 kB / 3.831 GB, free: 10.32 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.933e-05/10.59, allocations: 19.61 kB / 3.831 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008713/10.59, allocations: 1.185 MB / 3.832 GB, free: 9.086 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/10.59, allocations: 0 / 3.832 GB, free: 9.086 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003798/10.6, allocations: 2.56 MB / 3.835 GB, free: 6.746 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006065/10.6, allocations: 324.6 kB / 3.835 GB, free: 6.453 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/10.6, allocations: 24.02 kB / 3.835 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/10.6, allocations: 77.42 kB / 3.835 GB, free: 6.371 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/10.6, allocations: 50.36 kB / 3.835 GB, free: 6.344 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.789e-05/10.6, allocations: 27.84 kB / 3.835 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007151/10.6, allocations: 463.5 kB / 3.836 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.61e-07/10.6, allocations: 0 / 3.836 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008147/10.61, allocations: 1.407 MB / 3.837 GB, free: 4.559 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 25 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01373/10.62, allocations: 4.764 MB / 3.842 GB, free: 264 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.3486/10.97, allocations: 1.476 MB / 3.843 GB, free: 84.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/10.97, allocations: 0 / 3.843 GB, free: 84.66 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001493/10.97, allocations: 0.8639 MB / 3.844 GB, free: 84.66 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/10.97, allocations: 317.7 kB / 3.844 GB, free: 84.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009346/10.98, allocations: 7.007 MB / 3.851 GB, free: 80.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/10.98, allocations: 1.167 MB / 3.852 GB, free: 79.43 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001272/10.98, allocations: 0.654 MB / 3.853 GB, free: 79.42 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005123/10.98, allocations: 453.2 kB / 3.854 GB, free: 79.41 MB / 0.5573 GB Notification: Performance of SimCode: time 1.122e-06/10.98, allocations: 2.375 kB / 3.854 GB, free: 79.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/11.09, allocations: 55.44 MB / 3.908 GB, free: 77.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/11.09, allocations: 279.1 kB / 3.908 GB, free: 77.63 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.191/15.28, allocations: 0 / 3.908 GB, free: 77.63 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat does not exist to compare? outputFormat=mat