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.001307/0.001307, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 221.5 MB / 230.7 MB, free: 7.531 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.001275/0.001275, allocations: 88.17 kB / 281.6 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2701/0.2701, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.747e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1421, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.857/7.999, allocations: 2.777 GB / 3.271 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/8, allocations: 86.72 kB / 3.271 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.851/9.85, allocations: 0.5024 GB / 3.774 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.764e-06/9.85, allocations: 0 / 3.774 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001506/9.851, allocations: 32.12 kB / 3.774 GB, free: 61.65 MB / 0.5261 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.009644/9.86, allocations: 2.066 MB / 3.776 GB, free: 60.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/9.86, allocations: 11.14 kB / 3.776 GB, free: 60.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006662/9.867, allocations: 0.7252 MB / 3.777 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/9.869, allocations: 0.8069 MB / 3.777 GB, free: 59.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/9.87, allocations: 48.28 kB / 3.777 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003277/9.87, allocations: 50.91 kB / 3.778 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002233/9.872, allocations: 0.9135 MB / 3.778 GB, free: 59.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/9.875, allocations: 1.088 MB / 3.779 GB, free: 59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.342e-05/9.875, allocations: 7.812 kB / 3.779 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/9.875, allocations: 3.438 kB / 3.779 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/9.875, allocations: 21.5 kB / 3.78 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09562/9.971, allocations: 52.97 MB / 3.831 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008495/9.972, allocations: 0.6031 MB / 3.832 GB, free: 22.94 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/9.972, allocations: 299.6 kB / 3.832 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02811/10, allocations: 16.65 MB / 3.848 GB, free: 22.17 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.137e-05/10, allocations: 43.12 kB / 3.848 GB, free: 22.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.485e-06/10, allocations: 0 / 3.848 GB, free: 22.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.005212/10.01, allocations: 1.485 MB / 3.85 GB, free: 20.95 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/10.01, allocations: 214.2 kB / 3.85 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000694/10.01, allocations: 0.5602 MB / 3.851 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.278e-05/10.01, allocations: 33.7 kB / 3.851 GB, free: 20.14 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000268/10.01, allocations: 0.5061 MB / 3.851 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/10.01, allocations: 198.7 kB / 3.851 GB, free: 19.49 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/10.01, allocations: 0 / 3.851 GB, free: 19.49 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001946/10.01, allocations: 384 kB / 3.852 GB, free: 19.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003603/10.01, allocations: 253 kB / 3.852 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/10.01, allocations: 0.5491 MB / 3.852 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00218/10.01, allocations: 0.5688 MB / 3.853 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/10.01, allocations: 0 / 3.853 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003162/10.01, allocations: 1.101 MB / 3.854 GB, free: 16.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00137/10.01, allocations: 3.229 MB / 3.857 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/10.01, allocations: 8 kB / 3.857 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/10.01, allocations: 12 kB / 3.857 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009392/10.02, allocations: 279.6 kB / 3.858 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/10.02, allocations: 23.92 kB / 3.858 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/10.02, allocations: 159 kB / 3.858 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-05/10.02, allocations: 51.98 kB / 3.858 GB, free: 12.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/10.02, allocations: 4 kB / 3.858 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002398/10.02, allocations: 0.8815 MB / 3.859 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/10.02, allocations: 11.94 kB / 3.859 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/10.02, allocations: 24.08 kB / 3.859 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009126/10.02, allocations: 275.6 kB / 3.859 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/10.02, allocations: 19.92 kB / 3.859 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009669/10.02, allocations: 135.1 kB / 3.859 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.87e-05/10.02, allocations: 51.97 kB / 3.859 GB, free: 11.21 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.000258/10.02, allocations: 139.9 kB / 3.859 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002718/10.02, allocations: 0.8297 MB / 3.86 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/10.02, allocations: 90.92 kB / 3.86 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004353/10.03, allocations: 3.354 MB / 3.863 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/10.03, allocations: 19.97 kB / 3.863 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/10.03, allocations: 7.938 kB / 3.863 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/10.03, allocations: 7.984 kB / 3.863 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/10.03, allocations: 1.823 MB / 3.865 GB, free: 4.871 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/10.03, allocations: 0 / 3.865 GB, free: 4.871 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000853/10.03, allocations: 227.8 kB / 3.865 GB, free: 4.648 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/10.03, allocations: 0 / 3.865 GB, free: 4.648 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/10.03, allocations: 7.953 kB / 3.865 GB, free: 4.641 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-06/10.03, allocations: 4 kB / 3.865 GB, free: 4.637 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/10.03, allocations: 0 / 3.865 GB, free: 4.637 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/10.04, allocations: 1.328 MB / 3.867 GB, free: 3.289 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/10.04, allocations: 0.7544 MB / 3.868 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/10.04, allocations: 4 kB / 3.868 GB, free: 2.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008437/10.04, allocations: 87.78 kB / 3.868 GB, free: 2.422 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/10.04, allocations: 88.66 kB / 3.868 GB, free: 2.336 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/10.04, allocations: 27.98 kB / 3.868 GB, free: 2.309 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001812/10.04, allocations: 1.351 MB / 3.869 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.2e-07/10.04, allocations: 0 / 3.869 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.4377/10.48, allocations: 1.627 MB / 3.871 GB, free: 77.8 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: 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.01244/10.49, allocations: 3.688 MB / 3.874 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003021/10.49, allocations: 1.219 MB / 3.875 GB, free: 77.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/10.49, allocations: 1.188 kB / 3.875 GB, free: 77.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000925/10.49, allocations: 496.6 kB / 3.876 GB, free: 77.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/10.5, allocations: 441.8 kB / 3.876 GB, free: 77.03 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007746/10.5, allocations: 2.853 MB / 3.879 GB, free: 76.33 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008523/10.51, allocations: 1.438 MB / 3.88 GB, free: 75.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002937/10.51, allocations: 1.672 MB / 3.882 GB, free: 75.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007631/10.51, allocations: 0.7063 MB / 3.883 GB, free: 75.58 MB / 0.5417 GB Notification: Performance of SimCode: time 1.152e-06/10.51, allocations: 1.219 kB / 3.883 GB, free: 75.58 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1117/10.62, allocations: 60.43 MB / 3.942 GB, free: 73.38 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/10.62, allocations: 202.8 kB / 3.942 GB, free: 73.18 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.538/15.16, allocations: 4 kB / 3.942 GB, free: 73.18 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