Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.001789/0.001789, allocations: 179.6 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.524/1.524, allocations: 221.3 MB / 236 MB, free: 2.969 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.0009111/0.0009114, allocations: 94.91 kB / 287 MB, free: 252 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.2666/0.2666, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.866e-05/3.87e-05, allocations: 4.219 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.167, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.821/7.988, allocations: 2.76 GB / 3.261 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/7.989, allocations: 89.77 kB / 3.261 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.8447/8.834, allocations: 218.9 MB / 3.475 GB, free: 92.02 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.294e-06/8.834, allocations: 0 / 3.475 GB, free: 92.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.692e-05/8.834, allocations: 11.28 kB / 3.475 GB, free: 92.02 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006061/8.84, allocations: 1.172 MB / 3.476 GB, free: 91.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.592e-05/8.84, allocations: 12.91 kB / 3.476 GB, free: 91.26 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.955e-05/8.84, allocations: 68.69 kB / 3.476 GB, free: 91.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/8.842, allocations: 214 kB / 3.477 GB, free: 91.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006412/8.842, allocations: 375.8 kB / 3.477 GB, free: 90.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/8.842, allocations: 32.06 kB / 3.477 GB, free: 90.87 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/8.842, allocations: 27.09 kB / 3.477 GB, free: 90.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/8.844, allocations: 0.5838 MB / 3.478 GB, free: 90.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/8.844, allocations: 0 / 3.478 GB, free: 90.58 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/8.844, allocations: 19.39 kB / 3.478 GB, free: 90.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/8.844, allocations: 7.875 kB / 3.478 GB, free: 90.57 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/8.845, allocations: 0.4899 MB / 3.478 GB, free: 90.43 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/8.847, allocations: 2.604 MB / 3.481 GB, free: 88.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/8.848, allocations: 423.5 kB / 3.481 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/8.849, allocations: 138.4 kB / 3.481 GB, free: 88.04 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04181/8.89, allocations: 24.15 MB / 3.505 GB, free: 71.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/8.891, allocations: 42.44 kB / 3.505 GB, free: 71.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 2.494e-06/8.891, allocations: 3.875 kB / 3.505 GB, free: 71.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002076/8.893, allocations: 0.6283 MB / 3.505 GB, free: 70.74 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/8.893, allocations: 106.8 kB / 3.505 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/8.893, allocations: 271.9 kB / 3.506 GB, free: 70.44 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/8.893, allocations: 33.42 kB / 3.506 GB, free: 70.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/8.893, allocations: 197.6 kB / 3.506 GB, free: 70.22 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.42e-05/8.893, allocations: 85.22 kB / 3.506 GB, free: 70.15 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/8.893, allocations: 11.34 kB / 3.506 GB, free: 70.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.55e-05/8.893, allocations: 342.6 kB / 3.506 GB, free: 69.81 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/8.894, allocations: 94.44 kB / 3.506 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/8.894, allocations: 191 kB / 3.507 GB, free: 69.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/8.894, allocations: 110.2 kB / 3.507 GB, free: 69.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/8.894, allocations: 0 / 3.507 GB, free: 69.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005926/8.895, allocations: 326.7 kB / 3.507 GB, free: 69.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/8.895, allocations: 7.375 kB / 3.507 GB, free: 69.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/8.895, allocations: 7.922 kB / 3.507 GB, free: 69.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/8.895, allocations: 7.812 kB / 3.507 GB, free: 69.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/8.895, allocations: 89.78 kB / 3.507 GB, free: 69.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.037e-05/8.895, allocations: 11.86 kB / 3.507 GB, free: 69.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004498/8.896, allocations: 62.22 kB / 3.507 GB, free: 69.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/8.896, allocations: 19.27 kB / 3.507 GB, free: 69.29 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001385/8.896, allocations: 120.5 kB / 3.507 GB, free: 69.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/8.896, allocations: 35.06 kB / 3.507 GB, free: 69.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/8.898, allocations: 1.836 MB / 3.509 GB, free: 68.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/8.898, allocations: 31.95 kB / 3.509 GB, free: 68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/8.898, allocations: 0 / 3.509 GB, free: 68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.706e-05/8.898, allocations: 11.94 kB / 3.509 GB, free: 67.99 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/8.899, allocations: 0.9988 MB / 3.51 GB, free: 66.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/8.899, allocations: 3.984 kB / 3.51 GB, free: 66.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/8.9, allocations: 79.88 kB / 3.51 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/8.9, allocations: 4 kB / 3.51 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/8.9, allocations: 4 kB / 3.51 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/8.9, allocations: 4 kB / 3.51 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/8.9, allocations: 4 kB / 3.51 GB, free: 66.84 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/8.901, allocations: 0.9944 MB / 3.511 GB, free: 65.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/8.901, allocations: 211.6 kB / 3.511 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/8.901, allocations: 11.92 kB / 3.511 GB, free: 65.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/8.902, allocations: 43.97 kB / 3.512 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/8.902, allocations: 31.95 kB / 3.512 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/8.902, allocations: 11.98 kB / 3.512 GB, free: 65.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002969/8.902, allocations: 321.2 kB / 3.512 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/8.902, allocations: 0 / 3.512 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004946/8.907, allocations: 1.007 MB / 3.513 GB, free: 64.19 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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.009632/8.917, allocations: 2.809 MB / 3.516 GB, free: 61.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009685/8.918, allocations: 0.4946 MB / 3.516 GB, free: 60.99 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/8.918, allocations: 0.625 kB / 3.516 GB, free: 60.99 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005738/8.918, allocations: 473.1 kB / 3.517 GB, free: 60.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/8.92, allocations: 212.1 kB / 3.517 GB, free: 60.33 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005756/8.925, allocations: 1.569 MB / 3.518 GB, free: 58.72 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/8.926, allocations: 0.9835 MB / 3.519 GB, free: 57.71 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005974/8.926, allocations: 238.9 kB / 3.519 GB, free: 57.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/8.927, allocations: 251.3 kB / 3.52 GB, free: 57.23 MB / 0.5261 GB Notification: Performance of SimCode: time 1.433e-06/8.927, allocations: 0 / 3.52 GB, free: 57.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06676/8.994, allocations: 40.97 MB / 3.56 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/8.994, allocations: 214.5 kB / 3.56 GB, free: 16.13 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.25/12.24, allocations: 0 / 3.56 GB, free: 16.13 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat