Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.001427/0.001427, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001551/0.001551, allocations: 90.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4033/0.4033, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.903e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4142, allocations: 58.85 MB / 477.2 MB, free: 5.18 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.074/9.488, allocations: 2.832 GB / 3.298 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/9.489, allocations: 77.89 kB / 3.299 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.465/11.95, allocations: 498.2 MB / 3.785 GB, free: 27.55 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.264e-06/11.95, allocations: 0 / 3.785 GB, free: 27.55 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0001613/11.95, allocations: 47.84 kB / 3.785 GB, free: 27.51 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.015/11.97, allocations: 2.982 MB / 3.788 GB, free: 24.83 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/11.97, allocations: 8.031 kB / 3.788 GB, free: 24.82 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00803/11.98, allocations: 0.7064 MB / 3.789 GB, free: 24.26 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006594/11.98, allocations: 1.584 MB / 3.79 GB, free: 22.71 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/11.98, allocations: 95.92 kB / 3.79 GB, free: 22.62 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008803/11.98, allocations: 104 kB / 3.79 GB, free: 22.52 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00723/11.99, allocations: 2.826 MB / 3.793 GB, free: 19.69 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007282/12, allocations: 2.87 MB / 3.796 GB, free: 16.66 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.61e-05/12, allocations: 4 kB / 3.796 GB, free: 16.66 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/12, allocations: 7.984 kB / 3.796 GB, free: 16.65 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002366/12, allocations: 175.5 kB / 3.796 GB, free: 16.48 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or 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.8461/12.85, allocations: 140.5 MB / 3.933 GB, free: 34.29 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003926/12.85, allocations: 1.574 MB / 3.935 GB, free: 34.25 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/12.85, allocations: 0.9792 MB / 3.936 GB, free: 34.23 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0519/12.9, allocations: 16.72 MB / 3.952 GB, free: 23.45 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002786/12.91, allocations: 1.138 MB / 3.953 GB, free: 23.34 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=139): time 4.278e-06/12.91, allocations: 0 / 3.953 GB, free: 23.34 MB / 0.5577 GB Notification: Performance of matching and sorting (n=159): time 0.02808/12.94, allocations: 7.406 MB / 3.961 GB, free: 22.37 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/12.94, allocations: 222.8 kB / 3.961 GB, free: 22.12 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/12.94, allocations: 0.9245 MB / 3.962 GB, free: 21.96 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.000509/12.94, allocations: 26.73 kB / 3.962 GB, free: 21.93 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008412/12.94, allocations: 0.8958 MB / 3.963 GB, free: 21.49 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008052/12.94, allocations: 0.5344 MB / 3.963 GB, free: 21.22 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/12.94, allocations: 0 / 3.963 GB, free: 21.22 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.000212/12.94, allocations: 398.4 kB / 3.964 GB, free: 20.9 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/12.94, allocations: 1.13 MB / 3.965 GB, free: 20.89 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002972/12.95, allocations: 1.664 MB / 3.966 GB, free: 20.27 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/12.96, allocations: 2.004 MB / 3.968 GB, free: 20.21 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.33e-05/12.96, allocations: 3.25 kB / 3.968 GB, free: 20.21 MB / 0.5577 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01684/12.97, allocations: 4.399 MB / 3.973 GB, free: 20.05 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.002962/12.98, allocations: 6.271 MB / 3.979 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.11e-05/12.98, allocations: 17.59 kB / 3.979 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01837/12.99, allocations: 2.742 MB / 3.981 GB, free: 29.37 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/13, allocations: 336.1 kB / 3.982 GB, free: 29.36 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/13.01, allocations: 4.238 MB / 3.986 GB, free: 28.77 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004261/13.01, allocations: 259.7 kB / 3.986 GB, free: 28.74 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004787/13.01, allocations: 106.7 kB / 3.986 GB, free: 28.74 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/13.01, allocations: 6.281 kB / 3.986 GB, free: 28.74 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01559/13.03, allocations: 3.871 MB / 3.99 GB, free: 28.66 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.405e-05/13.03, allocations: 15.91 kB / 3.99 GB, free: 28.66 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01266/13.04, allocations: 2.051 MB / 3.992 GB, free: 28.6 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/13.04, allocations: 363.5 kB / 3.992 GB, free: 28.6 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006609/13.05, allocations: 3.241 MB / 3.995 GB, free: 28.02 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003426/13.05, allocations: 224.9 kB / 3.996 GB, free: 28 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/13.05, allocations: 103.2 kB / 3.996 GB, free: 28 MB / 0.5733 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007763/13.05, allocations: 162.8 kB / 3.996 GB, free: 27.89 MB / 0.5733 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007941/13.06, allocations: 2.466 MB / 3.998 GB, free: 27.71 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006158/13.06, allocations: 140.2 kB / 3.998 GB, free: 27.64 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01233/13.08, allocations: 5.658 MB / 4.004 GB, free: 27.2 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.188e-05/13.08, allocations: 67.06 kB / 4.004 GB, free: 27.19 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/13.08, allocations: 0 / 4.004 GB, free: 27.19 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01/13.09, allocations: 5.118 MB / 4.009 GB, free: 24.13 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/13.1, allocations: 8.416 MB / 4.017 GB, free: 19.8 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/13.1, allocations: 0 / 4.017 GB, free: 19.8 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003537/13.11, allocations: 396.5 kB / 4.018 GB, free: 19.52 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/13.11, allocations: 419.7 kB / 4.018 GB, free: 19.28 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005575/13.11, allocations: 34.34 kB / 4.018 GB, free: 19.27 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/13.11, allocations: 3.361 MB / 4.021 GB, free: 16.25 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.014e-06/13.11, allocations: 0 / 4.021 GB, free: 16.25 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/13.13, allocations: 6.254 MB / 4.028 GB, free: 12.81 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002148/13.13, allocations: 0.5616 MB / 4.028 GB, free: 12.4 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007075/13.13, allocations: 15.28 kB / 4.028 GB, free: 12.39 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/13.13, allocations: 175.6 kB / 4.028 GB, free: 12.28 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008402/13.13, allocations: 167.4 kB / 4.028 GB, free: 12.19 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/13.14, allocations: 61.05 kB / 4.028 GB, free: 12.15 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.001434/13.14, allocations: 0.6557 MB / 4.029 GB, free: 11.75 MB / 0.5733 GB Notification: Performance of sort global known variables: time 6.71e-07/13.14, allocations: 0 / 4.029 GB, free: 11.75 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01196/13.15, allocations: 2.187 MB / 4.031 GB, free: 9.852 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03126/13.18, allocations: 8.933 MB / 4.04 GB, free: 2.914 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.4028/13.58, allocations: 4.823 MB / 4.045 GB, free: 119.2 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/13.58, allocations: 2.031 kB / 4.045 GB, free: 119.2 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.005494/13.59, allocations: 2.076 MB / 4.047 GB, free: 119.2 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005583/13.59, allocations: 0.5653 MB / 4.047 GB, free: 119.2 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/13.61, allocations: 6.161 MB / 4.053 GB, free: 118.2 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/13.62, allocations: 1.909 MB / 4.055 GB, free: 117.5 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0025/13.62, allocations: 1.001 MB / 4.056 GB, free: 117.5 MB / 0.5733 GB Notification: Performance of SimCode: time 1.502e-06/13.62, allocations: 0 / 4.056 GB, free: 117.5 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.712/18.33, allocations: 91.92 MB / 4.146 GB, free: 112.4 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat