Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.001712/0.001712, allocations: 180.2 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.594/1.594, allocations: 221.3 MB / 236 MB, free: 2.973 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.0008582/0.0008582, allocations: 95.55 kB / 287 MB, free: 268 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.2309/0.2309, allocations: 44.16 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.641e-05/4.644e-05, allocations: 4.219 kB / 451.9 MB, free: 9.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1821, allocations: 61.93 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.516/7.698, allocations: 2.777 GB / 3.279 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/7.699, allocations: 83.83 kB / 3.279 GB, free: 153 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.595/10.29, allocations: 0.6439 GB / 3.923 GB, free: 45.85 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.316e-06/10.29, allocations: 0 / 3.923 GB, free: 45.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002667/10.29, allocations: 44.45 kB / 3.923 GB, free: 45.84 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01247/10.31, allocations: 2.434 MB / 3.926 GB, free: 44.73 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/10.31, allocations: 15.28 kB / 3.926 GB, free: 44.73 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008493/10.31, allocations: 177.9 kB / 3.926 GB, free: 44.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008755/10.32, allocations: 0.9546 MB / 3.927 GB, free: 44.61 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003505/10.32, allocations: 1.002 MB / 3.928 GB, free: 44.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/10.32, allocations: 103.7 kB / 3.928 GB, free: 44.28 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005664/10.32, allocations: 115.1 kB / 3.928 GB, free: 44.28 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007033/10.33, allocations: 2.26 MB / 3.93 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-05/10.33, allocations: 9.312 kB / 3.93 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004352/10.33, allocations: 57.66 kB / 3.93 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.08e-05/10.33, allocations: 32.34 kB / 3.93 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00545/10.33, allocations: 1.984 MB / 3.932 GB, free: 43.82 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01481/10.35, allocations: 10.33 MB / 3.942 GB, free: 36.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00425/10.35, allocations: 1.561 MB / 3.944 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007175/10.35, allocations: 424 kB / 3.944 GB, free: 36.81 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04657/10.4, allocations: 24.01 MB / 3.968 GB, free: 21.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.091e-05/10.4, allocations: 45.41 kB / 3.968 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=80): time 2.945e-06/10.4, allocations: 0 / 3.968 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=80): time 0.007513/10.41, allocations: 2.307 MB / 3.97 GB, free: 21.51 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/10.41, allocations: 269.9 kB / 3.97 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/10.41, allocations: 0.9909 MB / 3.971 GB, free: 21.03 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002189/10.41, allocations: 43.58 kB / 3.971 GB, free: 21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/10.41, allocations: 0.6115 MB / 3.972 GB, free: 20.73 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000359/10.41, allocations: 276 kB / 3.972 GB, free: 20.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/10.41, allocations: 22.12 kB / 3.972 GB, free: 20.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001044/10.41, allocations: 353.8 kB / 3.972 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006569/10.41, allocations: 342.4 kB / 3.973 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009134/10.41, allocations: 0.7799 MB / 3.973 GB, free: 19.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/10.41, allocations: 433.5 kB / 3.974 GB, free: 19.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/10.41, allocations: 2.938 kB / 3.974 GB, free: 19.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002404/10.42, allocations: 1.24 MB / 3.975 GB, free: 19.58 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001207/10.42, allocations: 4.91 MB / 3.98 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-05/10.42, allocations: 10.88 kB / 3.98 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.172e-05/10.42, allocations: 22.47 kB / 3.98 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/10.42, allocations: 365 kB / 3.98 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.822e-05/10.42, allocations: 22.53 kB / 3.98 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/10.42, allocations: 275.5 kB / 3.98 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/10.42, allocations: 76.19 kB / 3.981 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/10.42, allocations: 3.938 kB / 3.981 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001912/10.42, allocations: 1.076 MB / 3.982 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/10.42, allocations: 21.36 kB / 3.982 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.954e-05/10.42, allocations: 20.69 kB / 3.982 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/10.42, allocations: 353.2 kB / 3.982 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.439e-05/10.42, allocations: 29.39 kB / 3.982 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/10.43, allocations: 229.5 kB / 3.982 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/10.43, allocations: 70.61 kB / 3.982 GB, free: 14.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.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 (143): * Single equations (assignments): 143 * 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.0004279/10.43, allocations: 187.2 kB / 3.982 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/10.43, allocations: 142.6 kB / 3.983 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007032/10.43, allocations: 6.41 MB / 3.989 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.259e-05/10.43, allocations: 82.17 kB / 3.989 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/10.43, allocations: 3.781 kB / 3.989 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/10.43, allocations: 4.922 kB / 3.989 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/10.44, allocations: 3.256 MB / 3.992 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/10.44, allocations: 3.625 kB / 3.992 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009534/10.44, allocations: 275 kB / 3.992 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.046e-05/10.44, allocations: 3.938 kB / 3.992 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.874e-05/10.44, allocations: 22.88 kB / 3.992 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/10.44, allocations: 11.7 kB / 3.992 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/10.44, allocations: 0 / 3.992 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/10.44, allocations: 2.737 MB / 3.995 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/10.44, allocations: 0.9013 MB / 3.996 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000605/10.45, allocations: 21.12 kB / 3.996 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/10.45, allocations: 131.1 kB / 3.996 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/10.45, allocations: 110.1 kB / 3.996 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-05/10.45, allocations: 47.56 kB / 3.996 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002676/10.45, allocations: 1.564 MB / 3.998 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-07/10.45, allocations: 0 / 3.998 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009385/10.46, allocations: 1.838 MB / 4 GB, free: 9.961 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: 56 ($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,$cse44.phase,$cse44.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse54.phase,$cse54.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.0145/10.47, allocations: 5.154 MB / 4.005 GB, free: 7.719 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004177/10.48, allocations: 2.215 MB / 4.007 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/10.48, allocations: 0 / 4.007 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001724/10.48, allocations: 1.341 MB / 4.008 GB, free: 6.203 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/10.49, allocations: 0.8051 MB / 4.009 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/10.5, allocations: 4.852 MB / 4.014 GB, free: 19.99 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/10.5, allocations: 1.873 MB / 4.015 GB, free: 19.19 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004771/10.51, allocations: 2.165 MB / 4.018 GB, free: 19.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/10.51, allocations: 1.085 MB / 4.019 GB, free: 18.18 MB / 0.5573 GB Notification: Performance of SimCode: time 2.013e-06/10.51, allocations: 0 / 4.019 GB, free: 18.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6166/11.12, allocations: 95.52 MB / 4.112 GB, free: 47.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/11.12, allocations: 204.8 kB / 4.112 GB, free: 46.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.521/17.65, allocations: 4 kB / 4.112 GB, free: 46.79 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat