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.001414/0.001414, allocations: 177 kB / 17.06 MB, free: 5.094 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.446/1.446, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00094/0.0009402, allocations: 95.08 kB / 292.1 MB, free: 10.93 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.353/0.353, allocations: 44.21 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.000368, allocations: 11.98 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3955, allocations: 61.9 MB / 0.5096 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.674/7.07, allocations: 2.76 GB / 3.269 GB, free: 101 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004254/7.07, allocations: 91.92 kB / 3.269 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.005/8.075, allocations: 219.6 MB / 3.484 GB, free: 72.83 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.164e-06/8.075, allocations: 0 / 3.484 GB, free: 72.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.401e-05/8.075, allocations: 3.938 kB / 3.484 GB, free: 72.83 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.005143/8.08, allocations: 1.212 MB / 3.485 GB, free: 72.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/8.08, allocations: 7.906 kB / 3.485 GB, free: 72.05 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/8.081, allocations: 66.05 kB / 3.485 GB, free: 71.99 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001868/8.082, allocations: 225.9 kB / 3.485 GB, free: 71.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006799/8.083, allocations: 372.3 kB / 3.486 GB, free: 71.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/8.083, allocations: 24.56 kB / 3.486 GB, free: 71.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-05/8.083, allocations: 27.81 kB / 3.486 GB, free: 71.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/8.085, allocations: 0.5945 MB / 3.486 GB, free: 71.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/8.085, allocations: 7.844 kB / 3.486 GB, free: 71.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.2e-05/8.085, allocations: 11.97 kB / 3.486 GB, free: 71.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/8.085, allocations: 7.938 kB / 3.486 GB, free: 71.39 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/8.086, allocations: 0.5577 MB / 3.487 GB, free: 71.26 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.002859/8.089, allocations: 2.606 MB / 3.489 GB, free: 69.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/8.091, allocations: 470.8 kB / 3.49 GB, free: 68.95 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04356/8.134, allocations: 24.07 MB / 3.513 GB, free: 53.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/8.134, allocations: 50.16 kB / 3.513 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 2.384e-06/8.134, allocations: 0 / 3.513 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002911/8.137, allocations: 0.804 MB / 3.514 GB, free: 52.91 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/8.137, allocations: 114.3 kB / 3.514 GB, free: 52.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/8.138, allocations: 274.5 kB / 3.514 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.758e-05/8.138, allocations: 29.7 kB / 3.514 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/8.138, allocations: 196.9 kB / 3.515 GB, free: 52.42 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.148e-05/8.138, allocations: 87.62 kB / 3.515 GB, free: 52.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-05/8.138, allocations: 8 kB / 3.515 GB, free: 52.35 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000103/8.138, allocations: 344 kB / 3.515 GB, free: 52.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/8.139, allocations: 142.5 kB / 3.515 GB, free: 51.98 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/8.139, allocations: 229.8 kB / 3.515 GB, free: 51.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/8.139, allocations: 161.6 kB / 3.516 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/8.139, allocations: 0 / 3.516 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009556/8.14, allocations: 431.8 kB / 3.516 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/8.14, allocations: 7.125 kB / 3.516 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/8.14, allocations: 3.281 kB / 3.516 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/8.14, allocations: 2.031 kB / 3.516 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/8.141, allocations: 92.67 kB / 3.516 GB, free: 51.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/8.141, allocations: 7.562 kB / 3.516 GB, free: 51.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/8.141, allocations: 74.81 kB / 3.516 GB, free: 51.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/8.141, allocations: 15.81 kB / 3.516 GB, free: 51.57 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 () * Number of clocked 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.0002144/8.142, allocations: 165.9 kB / 3.516 GB, free: 51.42 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/8.142, allocations: 31.25 kB / 3.516 GB, free: 51.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/8.144, allocations: 1.911 MB / 3.518 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/8.144, allocations: 31.19 kB / 3.518 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/8.144, allocations: 0 / 3.518 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/8.144, allocations: 7.922 kB / 3.518 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/8.145, allocations: 1.009 MB / 3.519 GB, free: 48.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/8.145, allocations: 0 / 3.519 GB, free: 48.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/8.145, allocations: 79.75 kB / 3.519 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/8.145, allocations: 0 / 3.519 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/8.145, allocations: 8 kB / 3.519 GB, free: 48.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/8.145, allocations: 3.797 kB / 3.519 GB, free: 48.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/8.145, allocations: 0 / 3.519 GB, free: 48.76 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/8.147, allocations: 1.088 MB / 3.52 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/8.147, allocations: 221.5 kB / 3.521 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.099e-05/8.147, allocations: 8 kB / 3.521 GB, free: 47.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/8.147, allocations: 39.64 kB / 3.521 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.466e-05/8.147, allocations: 35 kB / 3.521 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/8.147, allocations: 12 kB / 3.521 GB, free: 47.47 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003159/8.148, allocations: 320.3 kB / 3.521 GB, free: 47.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/8.148, allocations: 0 / 3.521 GB, free: 47.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004997/8.153, allocations: 1.025 MB / 3.522 GB, free: 46.2 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 () * Number of clocked 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.01038/8.163, allocations: 2.899 MB / 3.525 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001424/8.165, allocations: 0.6049 MB / 3.525 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/8.165, allocations: 4 kB / 3.525 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007051/8.165, allocations: 0.5092 MB / 3.526 GB, free: 42.62 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/8.167, allocations: 200.3 kB / 3.526 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008396/8.175, allocations: 5.154 MB / 3.531 GB, free: 37.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/8.175, allocations: 0.9829 MB / 3.532 GB, free: 36.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004987/8.176, allocations: 239.7 kB / 3.532 GB, free: 36.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/8.176, allocations: 254.3 kB / 3.533 GB, free: 36.33 MB / 0.5261 GB Notification: Performance of SimCode: time 1.352e-06/8.176, allocations: 4 kB / 3.533 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4141/8.59, allocations: 38.94 MB / 3.571 GB, free: 85.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/8.591, allocations: 237.3 kB / 3.571 GB, free: 85.08 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.162/11.75, allocations: 0 / 3.571 GB, free: 85.08 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