Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001607, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008914, allocations: 93.83 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2154/0.2154, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.228e-05, allocations: 224 / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1497, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.861/8.011, allocations: 2.777 GB / 3.279 GB, free: 92.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/8.011, allocations: 85.31 kB / 3.279 GB, free: 92.07 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.776/9.787, allocations: 0.5073 GB / 3.786 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.613e-06/9.787, allocations: 0 / 3.786 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.235e-05/9.787, allocations: 30.88 kB / 3.786 GB, free: 7.207 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008085/9.795, allocations: 2.059 MB / 3.788 GB, free: 5.121 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/9.796, allocations: 11.97 kB / 3.788 GB, free: 5.113 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002829/9.796, allocations: 139.6 kB / 3.789 GB, free: 4.969 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006118/9.802, allocations: 0.7203 MB / 3.789 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/9.804, allocations: 0.8086 MB / 3.79 GB, free: 3.422 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.271e-05/9.804, allocations: 80.38 kB / 3.79 GB, free: 3.344 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/9.804, allocations: 88 kB / 3.79 GB, free: 3.258 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004018/9.808, allocations: 1.72 MB / 3.792 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/9.808, allocations: 3.938 kB / 3.792 GB, free: 1.438 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/9.808, allocations: 44 kB / 3.792 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/9.808, allocations: 23.81 kB / 3.792 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4368/10.25, allocations: 1.491 MB / 3.793 GB, free: 56.2 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/10.26, allocations: 7.551 MB / 3.801 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/10.26, allocations: 1.177 MB / 3.802 GB, free: 51.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/10.26, allocations: 339 kB / 3.802 GB, free: 51.26 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05335/10.31, allocations: 24.25 MB / 3.826 GB, free: 36.44 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.015e-05/10.31, allocations: 47.22 kB / 3.826 GB, free: 36.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 5.24e-06/10.31, allocations: 0 / 3.826 GB, free: 36.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.006894/10.32, allocations: 1.78 MB / 3.828 GB, free: 36.32 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/10.32, allocations: 218.6 kB / 3.828 GB, free: 36.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/10.32, allocations: 0.7276 MB / 3.829 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002127/10.32, allocations: 37.3 kB / 3.829 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005604/10.32, allocations: 482.3 kB / 3.829 GB, free: 35.71 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003951/10.33, allocations: 227.3 kB / 3.829 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/10.33, allocations: 16.22 kB / 3.829 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000146/10.33, allocations: 340.3 kB / 3.83 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005991/10.33, allocations: 264.3 kB / 3.83 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007361/10.33, allocations: 0.5548 MB / 3.831 GB, free: 34.94 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006127/10.33, allocations: 334.6 kB / 3.831 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/10.33, allocations: 6 kB / 3.831 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002248/10.33, allocations: 0.9285 MB / 3.832 GB, free: 34.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009683/10.33, allocations: 3.229 MB / 3.835 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/10.33, allocations: 7.438 kB / 3.835 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.48e-05/10.33, allocations: 16.47 kB / 3.835 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/10.33, allocations: 278 kB / 3.835 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.009e-05/10.33, allocations: 19.41 kB / 3.835 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/10.33, allocations: 187 kB / 3.835 GB, free: 31.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/10.33, allocations: 55.34 kB / 3.835 GB, free: 31.45 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/10.33, allocations: 3.219 kB / 3.835 GB, free: 31.45 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001396/10.33, allocations: 0.8007 MB / 3.836 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/10.33, allocations: 7.891 kB / 3.836 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/10.33, allocations: 15.78 kB / 3.836 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009373/10.34, allocations: 269.3 kB / 3.836 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.151e-05/10.34, allocations: 21.47 kB / 3.837 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/10.34, allocations: 178.2 kB / 3.837 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/10.34, allocations: 50.5 kB / 3.837 GB, free: 31.4 MB / 0.5417 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.0003157/10.34, allocations: 164.2 kB / 3.837 GB, free: 31.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003557/10.34, allocations: 106.5 kB / 3.837 GB, free: 31.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005607/10.34, allocations: 4.874 MB / 3.842 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.224e-05/10.34, allocations: 62.11 kB / 3.842 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/10.34, allocations: 3.938 kB / 3.842 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/10.34, allocations: 7.438 kB / 3.842 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/10.35, allocations: 2.5 MB / 3.844 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/10.35, allocations: 0 / 3.844 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/10.35, allocations: 238.1 kB / 3.844 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.726e-05/10.35, allocations: 3.312 kB / 3.844 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.724e-05/10.35, allocations: 25.77 kB / 3.845 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/10.35, allocations: 3.094 kB / 3.845 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/10.35, allocations: 11.06 kB / 3.845 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002764/10.35, allocations: 2.128 MB / 3.847 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/10.35, allocations: 0.6977 MB / 3.847 GB, free: 29.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000431/10.35, allocations: 18.88 kB / 3.847 GB, free: 29.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/10.35, allocations: 109.5 kB / 3.847 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/10.35, allocations: 84.39 kB / 3.847 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.291e-05/10.35, allocations: 29.67 kB / 3.848 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001869/10.36, allocations: 1.162 MB / 3.849 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.11e-07/10.36, allocations: 0 / 3.849 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008064/10.36, allocations: 1.639 MB / 3.85 GB, free: 29.36 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: 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.01317/10.38, allocations: 4.345 MB / 3.854 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003242/10.38, allocations: 1.693 MB / 3.856 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/10.38, allocations: 3.938 kB / 3.856 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001445/10.38, allocations: 1.029 MB / 3.857 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004418/10.39, allocations: 0.6015 MB / 3.858 GB, free: 28.26 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/10.4, allocations: 3.761 MB / 3.861 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001678/10.4, allocations: 1.567 MB / 3.863 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003116/10.41, allocations: 1.636 MB / 3.865 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009977/10.41, allocations: 0.7923 MB / 3.865 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of SimCode: time 9.52e-07/10.41, allocations: 0 / 3.865 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1394/10.55, allocations: 78.02 MB / 3.942 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/10.55, allocations: 217.6 kB / 3.942 GB, free: 22.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.822/15.37, allocations: 0 / 3.942 GB, free: 22.66 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat