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.001803/0.001803, allocations: 174.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.497/1.497, allocations: 221.5 MB / 230.7 MB, free: 7.52 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.0009663/0.0009664, allocations: 88.61 kB / 281.6 MB, free: 5.258 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.2113/0.2113, allocations: 44.15 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.096e-05, allocations: 4 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.138, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.019/8.157, allocations: 2.759 GB / 3.254 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/8.158, allocations: 84.95 kB / 3.254 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.7842/8.942, allocations: 216.1 MB / 3.465 GB, free: 106 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.054e-06/8.942, allocations: 0 / 3.465 GB, free: 106 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.498e-05/8.942, allocations: 8.125 kB / 3.465 GB, free: 106 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.005232/8.947, allocations: 1.175 MB / 3.466 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/8.947, allocations: 11.05 kB / 3.466 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/8.949, allocations: 223.2 kB / 3.466 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/8.95, allocations: 369.6 kB / 3.467 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/8.95, allocations: 15.53 kB / 3.467 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/8.95, allocations: 15.31 kB / 3.467 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004597/8.95, allocations: 297.6 kB / 3.467 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/8.951, allocations: 379.5 kB / 3.467 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/8.951, allocations: 7.875 kB / 3.467 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/8.951, allocations: 3.172 kB / 3.467 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/8.951, allocations: 11.5 kB / 3.467 GB, free: 105 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.01699/8.968, allocations: 10.14 MB / 3.477 GB, free: 98.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/8.968, allocations: 236.7 kB / 3.477 GB, free: 98.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/8.969, allocations: 119 kB / 3.477 GB, free: 98.51 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0426/9.011, allocations: 24.16 MB / 3.501 GB, free: 83.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/9.011, allocations: 38.5 kB / 3.501 GB, free: 83.34 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.875e-06/9.011, allocations: 0 / 3.501 GB, free: 83.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.00187/9.013, allocations: 0.4994 MB / 3.502 GB, free: 83.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/9.013, allocations: 110.7 kB / 3.502 GB, free: 83.06 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/9.014, allocations: 234.3 kB / 3.502 GB, free: 82.91 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/9.014, allocations: 33.42 kB / 3.502 GB, free: 82.88 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/9.014, allocations: 210.5 kB / 3.502 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/9.014, allocations: 78.28 kB / 3.502 GB, free: 82.64 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/9.014, allocations: 0 / 3.502 GB, free: 82.64 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001123/9.014, allocations: 337.3 kB / 3.503 GB, free: 82.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/9.014, allocations: 82.78 kB / 3.503 GB, free: 82.29 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/9.014, allocations: 185.5 kB / 3.503 GB, free: 82.13 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007155/9.015, allocations: 161.4 kB / 3.503 GB, free: 82.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/9.015, allocations: 0 / 3.503 GB, free: 82.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009274/9.016, allocations: 360.7 kB / 3.503 GB, free: 81.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/9.016, allocations: 8.062 kB / 3.503 GB, free: 81.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/9.016, allocations: 4 kB / 3.503 GB, free: 81.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/9.016, allocations: 3.781 kB / 3.503 GB, free: 81.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/9.016, allocations: 88.08 kB / 3.503 GB, free: 81.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/9.016, allocations: 7.875 kB / 3.503 GB, free: 81.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/9.017, allocations: 57.67 kB / 3.503 GB, free: 81.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/9.017, allocations: 22.38 kB / 3.503 GB, free: 81.9 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.0001023/9.017, allocations: 112.7 kB / 3.504 GB, free: 81.79 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007431/9.018, allocations: 297.4 kB / 3.504 GB, free: 81.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/9.018, allocations: 34.25 kB / 3.504 GB, free: 81.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/9.02, allocations: 1.623 MB / 3.505 GB, free: 80.87 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-05/9.02, allocations: 26.44 kB / 3.506 GB, free: 80.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/9.02, allocations: 3.953 kB / 3.506 GB, free: 80.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/9.02, allocations: 3.047 kB / 3.506 GB, free: 80.86 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009783/9.021, allocations: 0.8413 MB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/9.021, allocations: 3.375 kB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003803/9.021, allocations: 84.89 kB / 3.506 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/9.021, allocations: 0 / 3.506 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/9.021, allocations: 7.156 kB / 3.506 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/9.021, allocations: 0 / 3.506 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/9.021, allocations: 7.234 kB / 3.506 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/9.022, allocations: 0.9069 MB / 3.507 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/9.023, allocations: 211.8 kB / 3.508 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.88e-05/9.023, allocations: 7.375 kB / 3.508 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/9.023, allocations: 40.09 kB / 3.508 GB, free: 79.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/9.023, allocations: 38.41 kB / 3.508 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/9.023, allocations: 11.56 kB / 3.508 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003073/9.024, allocations: 287.8 kB / 3.508 GB, free: 79.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/9.024, allocations: 0 / 3.508 GB, free: 79.53 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005184/9.029, allocations: 0.9867 MB / 3.509 GB, free: 79.34 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: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.009959/9.039, allocations: 2.798 MB / 3.512 GB, free: 78.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000811/9.04, allocations: 455.6 kB / 3.512 GB, free: 77.87 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/9.04, allocations: 0 / 3.512 GB, free: 77.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003879/9.04, allocations: 419.6 kB / 3.512 GB, free: 77.66 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/9.041, allocations: 166.1 kB / 3.513 GB, free: 77.62 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005092/9.046, allocations: 1.464 MB / 3.514 GB, free: 76.95 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/9.047, allocations: 0.9632 MB / 3.515 GB, free: 76.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005105/9.047, allocations: 254.7 kB / 3.515 GB, free: 76.22 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002751/9.048, allocations: 231.8 kB / 3.515 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.493e-06/9.048, allocations: 4 kB / 3.515 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07364/9.121, allocations: 34.91 MB / 3.55 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/9.121, allocations: 199.9 kB / 3.55 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.248/12.37, allocations: 0 / 3.55 GB, free: 62.91 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