Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002223/0.002223, allocations: 186.1 kB / 16.4 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 96.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5136/0.5136, allocations: 43.54 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000725/0.0007253, allocations: 16 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1525, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.659/8.811, allocations: 2.783 GB / 3.262 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/8.812, allocations: 86.7 kB / 3.262 GB, free: 24.26 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.135/12.95, allocations: 0.7647 GB / 4.027 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.855e-06/12.95, allocations: 4 kB / 4.027 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001363/12.95, allocations: 36.98 kB / 4.027 GB, free: 30.63 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.01347/12.96, allocations: 2.877 MB / 4.03 GB, free: 29 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/12.96, allocations: 10.28 kB / 4.03 GB, free: 29 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008095/12.96, allocations: 172 kB / 4.03 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007781/12.97, allocations: 0.6489 MB / 4.03 GB, free: 28.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/12.97, allocations: 0.9741 MB / 4.031 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/12.97, allocations: 97.19 kB / 4.031 GB, free: 28.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003664/12.97, allocations: 116.2 kB / 4.031 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008397/12.98, allocations: 2.03 MB / 4.033 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/12.98, allocations: 7.781 kB / 4.033 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/12.98, allocations: 53.69 kB / 4.034 GB, free: 27.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-05/12.98, allocations: 44.23 kB / 4.034 GB, free: 27.17 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009134/12.99, allocations: 1.88 MB / 4.035 GB, free: 26.02 MB / 0.5105 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.0173/13.01, allocations: 9.493 MB / 4.045 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008563/13.02, allocations: 1.652 MB / 4.046 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07958/13.1, allocations: 24.25 MB / 4.07 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.948e-05/13.1, allocations: 47.56 kB / 4.07 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=94): time 3.758e-06/13.1, allocations: 3.938 kB / 4.07 GB, free: 4.566 MB / 0.5261 GB Notification: Performance of matching and sorting (n=94): time 0.02184/13.12, allocations: 3.327 MB / 4.073 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/13.12, allocations: 175.2 kB / 4.073 GB, free: 0.9805 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/13.12, allocations: 0.7805 MB / 4.074 GB, free: 188 kB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002967/13.12, allocations: 45.7 kB / 4.074 GB, free: 136 kB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005883/13.12, allocations: 0.5819 MB / 4.075 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004764/13.12, allocations: 317.9 kB / 4.075 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/13.12, allocations: 20 kB / 4.075 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001735/13.12, allocations: 362.7 kB / 4.075 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/13.12, allocations: 0.4983 MB / 4.076 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002871/13.13, allocations: 0.8357 MB / 4.077 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002949/13.13, allocations: 0.5759 MB / 4.077 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.575e-05/13.13, allocations: 4 kB / 4.077 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.007416/13.14, allocations: 1.595 MB / 4.079 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001629/13.14, allocations: 3.749 MB / 4.083 GB, free: 7.145 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/13.14, allocations: 8 kB / 4.083 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004772/13.14, allocations: 0.5128 MB / 4.083 GB, free: 6.617 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/13.15, allocations: 295.6 kB / 4.083 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/13.15, allocations: 1.557 MB / 4.085 GB, free: 4.719 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003174/13.15, allocations: 246.6 kB / 4.085 GB, free: 4.477 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005188/13.16, allocations: 67.97 kB / 4.085 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/13.16, allocations: 0 / 4.085 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00693/13.16, allocations: 1.358 MB / 4.087 GB, free: 3.051 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/13.16, allocations: 15.98 kB / 4.087 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/13.16, allocations: 19.33 kB / 4.087 GB, free: 3.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004766/13.17, allocations: 452 kB / 4.087 GB, free: 2.578 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.525e-05/13.17, allocations: 19.92 kB / 4.087 GB, free: 2.559 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/13.17, allocations: 211.1 kB / 4.087 GB, free: 2.352 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/13.17, allocations: 67.91 kB / 4.087 GB, free: 2.285 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.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 (114): * Single equations (assignments): 112 * 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 {3 11,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001168/13.17, allocations: 389.5 kB / 4.088 GB, free: 1.895 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005115/13.17, allocations: 122.5 kB / 4.088 GB, free: 1.773 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4437/13.62, allocations: 5.898 MB / 4.094 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001282/13.62, allocations: 80.03 kB / 4.094 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/13.62, allocations: 3.859 kB / 4.094 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.582e-05/13.62, allocations: 6.094 kB / 4.094 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/13.63, allocations: 8.044 MB / 4.101 GB, free: 65.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/13.63, allocations: 0.7969 kB / 4.101 GB, free: 65.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/13.63, allocations: 225.3 kB / 4.102 GB, free: 65.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006125/13.64, allocations: 1.635 MB / 4.103 GB, free: 65.87 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/13.64, allocations: 29.98 kB / 4.103 GB, free: 65.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/13.64, allocations: 2.649 MB / 4.106 GB, free: 64.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/13.64, allocations: 0 / 4.106 GB, free: 64.81 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008818/13.65, allocations: 3.794 MB / 4.11 GB, free: 64.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/13.66, allocations: 0.5564 MB / 4.11 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003568/13.66, allocations: 20.62 kB / 4.11 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/13.66, allocations: 176.8 kB / 4.11 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003091/13.66, allocations: 106.2 kB / 4.11 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/13.66, allocations: 52.28 kB / 4.11 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001607/13.66, allocations: 0.7936 MB / 4.111 GB, free: 64.06 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.01e-07/13.66, allocations: 2.031 kB / 4.111 GB, free: 64.06 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009134/13.67, allocations: 1.876 MB / 4.113 GB, free: 64.02 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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 {3 16,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.02101/13.69, allocations: 5.984 MB / 4.119 GB, free: 63 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01019/13.7, allocations: 2.724 MB / 4.122 GB, free: 62.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/13.7, allocations: 0 / 4.122 GB, free: 62.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004004/13.7, allocations: 1.588 MB / 4.123 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006021/13.71, allocations: 0.5909 MB / 4.124 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02077/13.73, allocations: 13.34 MB / 4.137 GB, free: 53.47 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/13.73, allocations: 1.641 MB / 4.138 GB, free: 52.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/13.73, allocations: 0.842 MB / 4.139 GB, free: 52.72 MB / 0.5417 GB Notification: Performance of SimCode: time 1.153e-06/13.73, allocations: 0 / 4.139 GB, free: 52.72 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.287/18.02, allocations: 69.92 MB / 4.207 GB, free: 48.6 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat does not exist to compare? outputFormat=mat