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.002182/0.002182, 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.114/2.114, 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.001174/0.001174, allocations: 85.7 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.2939/0.2939, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.847e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4248, allocations: 58.86 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.532/8.957, allocations: 2.771 GB / 3.237 GB, free: 14.63 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004119/8.958, allocations: 82.14 kB / 3.237 GB, free: 14.59 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.864/11.82, allocations: 0.4969 GB / 3.734 GB, free: 43.37 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.254e-06/11.82, allocations: 0 / 3.734 GB, free: 43.37 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0001001/11.82, allocations: 36.88 kB / 3.734 GB, free: 43.36 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.009746/11.83, allocations: 2.061 MB / 3.736 GB, free: 42.35 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/11.83, allocations: 7.812 kB / 3.736 GB, free: 42.35 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008391/11.84, allocations: 0.7182 MB / 3.737 GB, free: 42.29 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/11.84, allocations: 0.8017 MB / 3.738 GB, free: 41.97 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-05/11.84, allocations: 40.31 kB / 3.738 GB, free: 41.97 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/11.84, allocations: 51.81 kB / 3.738 GB, free: 41.97 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002362/11.85, allocations: 0.9187 MB / 3.739 GB, free: 41.96 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/11.85, allocations: 1.089 MB / 3.74 GB, free: 41.42 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.908e-05/11.85, allocations: 11.02 kB / 3.74 GB, free: 41.42 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/11.85, allocations: 3.969 kB / 3.74 GB, free: 41.42 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/11.85, allocations: 24.72 kB / 3.74 GB, free: 41.42 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1632/12.01, allocations: 52.96 MB / 3.792 GB, free: 22.97 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/12.01, allocations: 0.6026 MB / 3.792 GB, free: 22.73 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/12.01, allocations: 301.7 kB / 3.793 GB, free: 22.62 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05384/12.07, allocations: 16.63 MB / 3.809 GB, free: 26.64 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/12.07, allocations: 43.06 kB / 3.809 GB, free: 26.59 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=61): time 3.236e-06/12.07, allocations: 0 / 3.809 GB, free: 26.59 MB / 0.5265 GB Notification: Performance of matching and sorting (n=61): time 0.008077/12.08, allocations: 1.491 MB / 3.81 GB, free: 25.43 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/12.08, allocations: 218.2 kB / 3.81 GB, free: 25.16 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/12.08, allocations: 0.5531 MB / 3.811 GB, free: 24.65 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0002199/12.08, allocations: 25.7 kB / 3.811 GB, free: 24.62 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003939/12.08, allocations: 0.535 MB / 3.812 GB, free: 24.11 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/12.08, allocations: 199.7 kB / 3.812 GB, free: 23.93 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.787e-05/12.08, allocations: 0 / 3.812 GB, free: 23.93 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001589/12.08, allocations: 346.4 kB / 3.812 GB, free: 23.6 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006251/12.08, allocations: 245.9 kB / 3.812 GB, free: 23.37 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008167/12.08, allocations: 0.5458 MB / 3.813 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003675/12.08, allocations: 0.5748 MB / 3.813 GB, free: 22.25 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/12.08, allocations: 4 kB / 3.813 GB, free: 22.25 MB / 0.5265 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.005204/12.09, allocations: 1.06 MB / 3.814 GB, free: 21.32 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.001272/12.09, allocations: 3.226 MB / 3.818 GB, free: 17.85 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/12.09, allocations: 8 kB / 3.818 GB, free: 17.84 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.986e-05/12.09, allocations: 12 kB / 3.818 GB, free: 17.83 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002074/12.09, allocations: 276.6 kB / 3.818 GB, free: 17.61 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/12.09, allocations: 15.95 kB / 3.818 GB, free: 17.59 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/12.09, allocations: 168.5 kB / 3.818 GB, free: 17.45 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/12.09, allocations: 55.3 kB / 3.818 GB, free: 17.41 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/12.09, allocations: 4 kB / 3.818 GB, free: 17.4 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004271/12.1, allocations: 0.8863 MB / 3.819 GB, free: 16.63 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/12.1, allocations: 11.52 kB / 3.819 GB, free: 16.62 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/12.1, allocations: 16 kB / 3.819 GB, free: 16.61 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/12.1, allocations: 267.9 kB / 3.819 GB, free: 16.38 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/12.1, allocations: 19.08 kB / 3.819 GB, free: 16.37 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/12.1, allocations: 138.5 kB / 3.819 GB, free: 16.25 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/12.1, allocations: 51.33 kB / 3.819 GB, free: 16.21 MB / 0.5265 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.0003715/12.1, allocations: 136.7 kB / 3.82 GB, free: 16.07 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004457/12.11, allocations: 0.8297 MB / 3.82 GB, free: 15.36 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/12.11, allocations: 90.91 kB / 3.82 GB, free: 15.27 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/12.11, allocations: 3.358 MB / 3.824 GB, free: 12.36 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.579e-05/12.11, allocations: 26.92 kB / 3.824 GB, free: 12.34 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/12.11, allocations: 4 kB / 3.824 GB, free: 12.34 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/12.11, allocations: 3.797 kB / 3.824 GB, free: 12.34 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003136/12.12, allocations: 1.823 MB / 3.826 GB, free: 10.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/12.12, allocations: 0 / 3.826 GB, free: 10.91 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/12.12, allocations: 228.5 kB / 3.826 GB, free: 10.73 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.201e-05/12.12, allocations: 0 / 3.826 GB, free: 10.73 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.226e-05/12.12, allocations: 11.28 kB / 3.826 GB, free: 10.72 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/12.12, allocations: 4 kB / 3.826 GB, free: 10.72 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/12.12, allocations: 3.703 kB / 3.826 GB, free: 10.72 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004038/12.12, allocations: 1.328 MB / 3.827 GB, free: 9.52 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/12.13, allocations: 0.7578 MB / 3.828 GB, free: 8.906 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/12.13, allocations: 0 / 3.828 GB, free: 8.906 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/12.13, allocations: 86.2 kB / 3.828 GB, free: 8.84 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/12.13, allocations: 91.05 kB / 3.828 GB, free: 8.781 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/12.13, allocations: 23.89 kB / 3.828 GB, free: 8.762 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.002855/12.13, allocations: 1.349 MB / 3.829 GB, free: 7.508 MB / 0.5265 GB Notification: Performance of sort global known variables: time 7.82e-07/12.13, allocations: 4 kB / 3.829 GB, free: 7.504 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.009091/12.14, allocations: 1.636 MB / 3.831 GB, free: 5.895 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.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 (73): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01696/12.16, allocations: 3.686 MB / 3.835 GB, free: 2.719 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.003318/12.16, allocations: 1.198 MB / 3.836 GB, free: 1.598 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/12.16, allocations: 0 / 3.836 GB, free: 1.598 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.001042/12.16, allocations: 497.6 kB / 3.836 GB, free: 1.141 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/12.17, allocations: 446.2 kB / 3.837 GB, free: 0.8164 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4729/12.64, allocations: 2.87 MB / 3.839 GB, free: 73.54 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009958/12.64, allocations: 1.437 MB / 3.841 GB, free: 72.81 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/12.64, allocations: 0.7194 MB / 3.842 GB, free: 72.8 MB / 0.5265 GB Notification: Performance of SimCode: time 1.823e-06/12.64, allocations: 0 / 3.842 GB, free: 72.8 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.768/16.41, allocations: 48.3 MB / 3.889 GB, free: 69.81 MB / 0.5265 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