Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002422/0.002421, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.144/2.144, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.0011/0.0011, allocations: 82.7 kB / 267.5 MB, free: 14.04 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.2803/0.2803, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.796e-05/4.825e-05, allocations: 8 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1209, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.092/8.213, allocations: 2.754 GB / 3.227 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/8.213, allocations: 85.17 kB / 3.227 GB, free: 81.98 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.168/9.381, allocations: 216.6 MB / 3.439 GB, free: 82.26 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.733e-06/9.381, allocations: 0 / 3.439 GB, free: 82.26 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.827e-05/9.381, allocations: 12 kB / 3.439 GB, free: 82.25 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.005356/9.386, allocations: 1.17 MB / 3.44 GB, free: 81.04 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/9.386, allocations: 8.031 kB / 3.44 GB, free: 81.04 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/9.386, allocations: 62.53 kB / 3.44 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002429/9.389, allocations: 230.6 kB / 3.44 GB, free: 80.74 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008076/9.39, allocations: 364.9 kB / 3.44 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/9.39, allocations: 24.72 kB / 3.441 GB, free: 80.33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/9.39, allocations: 35.98 kB / 3.441 GB, free: 80.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/9.392, allocations: 0.5763 MB / 3.441 GB, free: 79.69 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/9.392, allocations: 0 / 3.441 GB, free: 79.69 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.06e-05/9.392, allocations: 16 kB / 3.441 GB, free: 79.67 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/9.392, allocations: 19.88 kB / 3.441 GB, free: 79.65 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/9.394, allocations: 497.6 kB / 3.442 GB, free: 79.17 MB / 0.5105 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.003892/9.397, allocations: 2.599 MB / 3.444 GB, free: 76.37 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/9.399, allocations: 434.1 kB / 3.445 GB, free: 75.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/9.4, allocations: 136.8 kB / 3.445 GB, free: 75.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07399/9.474, allocations: 24.15 MB / 3.468 GB, free: 48.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/9.474, allocations: 38.56 kB / 3.468 GB, free: 48.79 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.366e-06/9.474, allocations: 0 / 3.468 GB, free: 48.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002787/9.476, allocations: 0.6294 MB / 3.469 GB, free: 48.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/9.477, allocations: 110.8 kB / 3.469 GB, free: 48.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/9.477, allocations: 270.7 kB / 3.469 GB, free: 47.76 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/9.477, allocations: 29.7 kB / 3.469 GB, free: 47.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/9.477, allocations: 246.5 kB / 3.47 GB, free: 47.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.957e-05/9.477, allocations: 92.88 kB / 3.47 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/9.477, allocations: 4 kB / 3.47 GB, free: 47.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.587e-05/9.477, allocations: 322.8 kB / 3.47 GB, free: 47.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/9.478, allocations: 91.98 kB / 3.47 GB, free: 46.97 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/9.478, allocations: 187 kB / 3.47 GB, free: 46.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/9.478, allocations: 103.9 kB / 3.47 GB, free: 46.64 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/9.478, allocations: 0 / 3.47 GB, free: 46.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007398/9.479, allocations: 321.3 kB / 3.471 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/9.479, allocations: 8 kB / 3.471 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/9.479, allocations: 0 / 3.471 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/9.479, allocations: 4 kB / 3.471 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/9.48, allocations: 88.14 kB / 3.471 GB, free: 46.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/9.48, allocations: 11.98 kB / 3.471 GB, free: 46.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/9.48, allocations: 59.66 kB / 3.471 GB, free: 46.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.269e-05/9.48, allocations: 16 kB / 3.471 GB, free: 46.14 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 () * 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.0001251/9.48, allocations: 120.9 kB / 3.471 GB, free: 46.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/9.481, allocations: 39.48 kB / 3.471 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/9.483, allocations: 1.849 MB / 3.473 GB, free: 44.11 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/9.483, allocations: 27.95 kB / 3.473 GB, free: 44.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/9.483, allocations: 3.984 kB / 3.473 GB, free: 44.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/9.483, allocations: 0 / 3.473 GB, free: 44.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/9.484, allocations: 1.008 MB / 3.474 GB, free: 43.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/9.484, allocations: 4 kB / 3.474 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005946/9.485, allocations: 75.88 kB / 3.474 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/9.485, allocations: 0 / 3.474 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/9.485, allocations: 11.95 kB / 3.474 GB, free: 42.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/9.485, allocations: 7.938 kB / 3.474 GB, free: 42.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/9.485, allocations: 4 kB / 3.474 GB, free: 42.93 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/9.486, allocations: 0.9829 MB / 3.475 GB, free: 41.93 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/9.487, allocations: 211.6 kB / 3.475 GB, free: 41.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/9.487, allocations: 8 kB / 3.475 GB, free: 41.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/9.488, allocations: 55.77 kB / 3.475 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/9.488, allocations: 35.94 kB / 3.475 GB, free: 41.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/9.488, allocations: 8 kB / 3.475 GB, free: 41.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005094/9.488, allocations: 317.2 kB / 3.475 GB, free: 41.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/9.488, allocations: 3.938 kB / 3.475 GB, free: 41.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004712/9.493, allocations: 1.001 MB / 3.476 GB, free: 40.28 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 () * 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.01074/9.504, allocations: 2.802 MB / 3.479 GB, free: 37.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001054/9.505, allocations: 0.5022 MB / 3.48 GB, free: 37.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/9.505, allocations: 0 / 3.48 GB, free: 37.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006008/9.506, allocations: 469.2 kB / 3.48 GB, free: 36.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/9.507, allocations: 210.3 kB / 3.48 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/9.513, allocations: 1.607 MB / 3.482 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/9.514, allocations: 0.9836 MB / 3.483 GB, free: 33.76 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004248/9.514, allocations: 251.3 kB / 3.483 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of SimCode: time 1.473e-06/9.514, allocations: 0 / 3.483 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.433/12.95, allocations: 29.28 MB / 3.512 GB, free: 4.199 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat