Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.002249/0.002249, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.045/2.045, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001111/0.001111, allocations: 82.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.285/0.285, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.808e-05/3.812e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1207, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.157/8.278, allocations: 2.772 GB / 3.245 GB, free: 65.11 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/8.278, allocations: 90.03 kB / 3.245 GB, free: 65.06 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.77/11.05, allocations: 0.5017 GB / 3.747 GB, free: 46.66 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.595e-06/11.05, allocations: 3.141 kB / 3.747 GB, free: 46.66 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.028e-05/11.05, allocations: 31.38 kB / 3.747 GB, free: 46.66 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008681/11.06, allocations: 2.058 MB / 3.749 GB, free: 45.85 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/11.06, allocations: 12.59 kB / 3.749 GB, free: 45.85 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002959/11.06, allocations: 141.7 kB / 3.749 GB, free: 45.81 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007996/11.07, allocations: 0.7205 MB / 3.75 GB, free: 45.75 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/11.07, allocations: 0.7926 MB / 3.75 GB, free: 45.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/11.07, allocations: 82.58 kB / 3.75 GB, free: 45.46 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/11.07, allocations: 91.11 kB / 3.75 GB, free: 45.46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005246/11.07, allocations: 1.719 MB / 3.752 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.004e-05/11.07, allocations: 4.969 kB / 3.752 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/11.07, allocations: 50.77 kB / 3.752 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/11.07, allocations: 21.91 kB / 3.752 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005161/11.08, allocations: 1.494 MB / 3.754 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/11.09, allocations: 7.555 MB / 3.761 GB, free: 40.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004556/11.1, allocations: 1.182 MB / 3.762 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007869/11.1, allocations: 343.9 kB / 3.763 GB, free: 40.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07164/11.17, allocations: 24.25 MB / 3.786 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/11.17, allocations: 50.12 kB / 3.786 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=67): time 2.836e-06/11.17, allocations: 0 / 3.786 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=67): time 0.007868/11.18, allocations: 1.779 MB / 3.788 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/11.18, allocations: 220.7 kB / 3.788 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/11.18, allocations: 0.7128 MB / 3.789 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001212/11.18, allocations: 45.36 kB / 3.789 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/11.18, allocations: 480.9 kB / 3.789 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/11.18, allocations: 226.5 kB / 3.79 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/11.18, allocations: 18.59 kB / 3.79 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.296e-05/11.18, allocations: 339 kB / 3.79 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007123/11.18, allocations: 271.2 kB / 3.79 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008796/11.18, allocations: 0.5507 MB / 3.791 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008147/11.18, allocations: 332.1 kB / 3.791 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/11.18, allocations: 3.969 kB / 3.791 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002273/11.18, allocations: 0.8777 MB / 3.792 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001471/11.19, allocations: 3.222 MB / 3.795 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/11.19, allocations: 7.906 kB / 3.795 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.738e-05/11.19, allocations: 11.72 kB / 3.795 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/11.19, allocations: 281.1 kB / 3.795 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.581e-05/11.19, allocations: 20.8 kB / 3.795 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/11.19, allocations: 188.8 kB / 3.796 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/11.19, allocations: 51.86 kB / 3.796 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/11.19, allocations: 7.156 kB / 3.796 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002057/11.19, allocations: 0.7997 MB / 3.796 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/11.19, allocations: 8.5 kB / 3.796 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/11.19, allocations: 14.03 kB / 3.796 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/11.19, allocations: 272.8 kB / 3.797 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.071e-05/11.19, allocations: 20.61 kB / 3.797 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/11.2, allocations: 151.9 kB / 3.797 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/11.2, allocations: 51.12 kB / 3.797 GB, free: 36.05 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000355/11.2, allocations: 169.4 kB / 3.797 GB, free: 35.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/11.2, allocations: 113.1 kB / 3.797 GB, free: 35.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006668/11.2, allocations: 4.877 MB / 3.802 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.072e-05/11.2, allocations: 63.42 kB / 3.802 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/11.2, allocations: 0 / 3.802 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/11.2, allocations: 3.328 kB / 3.802 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003639/11.21, allocations: 2.496 MB / 3.804 GB, free: 34.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/11.21, allocations: 3 kB / 3.804 GB, free: 34.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/11.21, allocations: 234.3 kB / 3.805 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/11.21, allocations: 7.297 kB / 3.805 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.85e-05/11.21, allocations: 24.44 kB / 3.805 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/11.21, allocations: 7.469 kB / 3.805 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/11.21, allocations: 3.812 kB / 3.805 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003408/11.21, allocations: 2.119 MB / 3.807 GB, free: 34.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/11.21, allocations: 0.7035 MB / 3.807 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005652/11.21, allocations: 19.48 kB / 3.807 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002155/11.22, allocations: 115.4 kB / 3.808 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/11.22, allocations: 88.5 kB / 3.808 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/11.22, allocations: 32.98 kB / 3.808 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002647/11.22, allocations: 1.161 MB / 3.809 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.032e-06/11.22, allocations: 0 / 3.809 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007801/11.23, allocations: 1.626 MB / 3.81 GB, free: 33.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01382/11.24, allocations: 4.36 MB / 3.815 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003587/11.25, allocations: 1.656 MB / 3.816 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/11.25, allocations: 0 / 3.816 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001527/11.25, allocations: 1.035 MB / 3.817 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005472/11.25, allocations: 0.5958 MB / 3.818 GB, free: 32.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/11.26, allocations: 3.791 MB / 3.822 GB, free: 31.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/11.26, allocations: 1.567 MB / 3.823 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/11.27, allocations: 0.8091 MB / 3.824 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of SimCode: time 1.493e-06/11.27, allocations: 0 / 3.824 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.092/15.36, allocations: 51.54 MB / 3.874 GB, free: 23.88 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat