Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001219, allocations: 183.3 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2262/0.2262, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004712, allocations: 11.98 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1344, allocations: 58.86 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.236/6.37, allocations: 2.754 GB / 3.233 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/6.371, allocations: 91.36 kB / 3.233 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.8349/7.206, allocations: 217.2 MB / 3.445 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.054e-06/7.206, allocations: 3.172 kB / 3.445 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.705e-05/7.206, allocations: 11.56 kB / 3.445 GB, free: 91.5 MB / 0.5105 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.006138/7.212, allocations: 1.21 MB / 3.447 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/7.212, allocations: 7.531 kB / 3.447 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002389/7.212, allocations: 67.91 kB / 3.447 GB, free: 90.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/7.214, allocations: 225.6 kB / 3.447 GB, free: 90.74 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/7.215, allocations: 366.8 kB / 3.447 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/7.216, allocations: 28.41 kB / 3.447 GB, free: 90.44 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.313e-05/7.216, allocations: 31.12 kB / 3.447 GB, free: 90.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/7.217, allocations: 0.6021 MB / 3.448 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/7.217, allocations: 3.906 kB / 3.448 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/7.218, allocations: 19.3 kB / 3.448 GB, free: 90.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/7.218, allocations: 11.86 kB / 3.448 GB, free: 90.15 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/7.219, allocations: 0.5532 MB / 3.448 GB, free: 90.03 MB / 0.5105 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.0032/7.222, allocations: 2.6 MB / 3.451 GB, free: 87.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/7.224, allocations: 472.7 kB / 3.451 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04453/7.268, allocations: 24.07 MB / 3.475 GB, free: 72.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/7.268, allocations: 42.38 kB / 3.475 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.066e-06/7.268, allocations: 3.781 kB / 3.475 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002979/7.271, allocations: 0.805 MB / 3.476 GB, free: 72.37 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/7.272, allocations: 106.3 kB / 3.476 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004033/7.272, allocations: 279.2 kB / 3.476 GB, free: 72.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/7.272, allocations: 33.61 kB / 3.476 GB, free: 72.05 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/7.272, allocations: 202.2 kB / 3.476 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/7.272, allocations: 86.06 kB / 3.476 GB, free: 71.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.718e-05/7.272, allocations: 7.969 kB / 3.476 GB, free: 71.82 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.758e-05/7.272, allocations: 341.4 kB / 3.477 GB, free: 71.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/7.273, allocations: 139.5 kB / 3.477 GB, free: 71.46 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/7.273, allocations: 239.9 kB / 3.477 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/7.274, allocations: 159.3 kB / 3.477 GB, free: 71.26 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/7.274, allocations: 0 / 3.477 GB, free: 71.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000935/7.274, allocations: 433.8 kB / 3.478 GB, free: 71.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/7.275, allocations: 10.77 kB / 3.478 GB, free: 71.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/7.275, allocations: 0 / 3.478 GB, free: 71.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/7.275, allocations: 6.344 kB / 3.478 GB, free: 71.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/7.275, allocations: 88.94 kB / 3.478 GB, free: 71.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/7.275, allocations: 7.531 kB / 3.478 GB, free: 71.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/7.275, allocations: 67.66 kB / 3.478 GB, free: 71.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/7.275, allocations: 11.88 kB / 3.478 GB, free: 71.07 MB / 0.5105 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.0002348/7.276, allocations: 165.5 kB / 3.478 GB, free: 70.92 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.501e-05/7.276, allocations: 31.12 kB / 3.478 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00236/7.278, allocations: 1.916 MB / 3.48 GB, free: 70.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.281e-05/7.278, allocations: 30.19 kB / 3.48 GB, free: 70.03 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/7.278, allocations: 7.719 kB / 3.48 GB, free: 70.03 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/7.278, allocations: 3.141 kB / 3.48 GB, free: 70.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/7.279, allocations: 1.006 MB / 3.481 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/7.279, allocations: 0 / 3.481 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/7.28, allocations: 81.5 kB / 3.481 GB, free: 69.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/7.28, allocations: 4 kB / 3.481 GB, free: 69.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/7.28, allocations: 11.7 kB / 3.481 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/7.28, allocations: 7.891 kB / 3.481 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/7.28, allocations: 0 / 3.481 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/7.281, allocations: 1.078 MB / 3.482 GB, free: 68.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000284/7.282, allocations: 219.2 kB / 3.482 GB, free: 68.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/7.282, allocations: 7.875 kB / 3.482 GB, free: 68.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/7.282, allocations: 41.06 kB / 3.482 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.635e-05/7.282, allocations: 34.75 kB / 3.482 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/7.282, allocations: 15.55 kB / 3.482 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003489/7.282, allocations: 324.4 kB / 3.483 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/7.282, allocations: 0 / 3.483 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005314/7.288, allocations: 1.011 MB / 3.484 GB, free: 68.34 MB / 0.5105 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.009999/7.298, allocations: 2.909 MB / 3.487 GB, free: 67.09 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001321/7.299, allocations: 0.6053 MB / 3.487 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/7.299, allocations: 0 / 3.487 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006647/7.3, allocations: 0.5118 MB / 3.488 GB, free: 66.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/7.301, allocations: 198.3 kB / 3.488 GB, free: 66.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008514/7.31, allocations: 5.131 MB / 3.493 GB, free: 63.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/7.31, allocations: 0.9864 MB / 3.494 GB, free: 62.49 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0005165/7.311, allocations: 257.2 kB / 3.494 GB, free: 62.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/7.311, allocations: 249.9 kB / 3.494 GB, free: 62.28 MB / 0.5105 GB Notification: Performance of SimCode: time 1.323e-06/7.311, allocations: 0 / 3.494 GB, free: 62.28 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07371/7.385, allocations: 38.91 MB / 3.532 GB, free: 51.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/7.385, allocations: 236.5 kB / 3.533 GB, free: 51.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.188/10.57, allocations: 0 / 3.533 GB, free: 51.14 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat