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.001483/0.001483, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.746/1.746, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009707/0.0009711, allocations: 84.28 kB / 267 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4598/0.4598, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.131e-05/4.134e-05, allocations: 0 / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1548, allocations: 58.85 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.151/7.306, allocations: 2.754 GB / 3.227 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/7.306, allocations: 87.53 kB / 3.227 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.7896/8.096, allocations: 216.6 MB / 3.439 GB, free: 75.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.323e-06/8.096, allocations: 0 / 3.439 GB, free: 75.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.29e-05/8.096, allocations: 7.438 kB / 3.439 GB, free: 75.88 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.005918/8.102, allocations: 1.167 MB / 3.44 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/8.102, allocations: 12.03 kB / 3.44 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/8.102, allocations: 68.16 kB / 3.44 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0019/8.104, allocations: 220.2 kB / 3.44 GB, free: 75.11 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007101/8.105, allocations: 370.1 kB / 3.44 GB, free: 74.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.649e-05/8.105, allocations: 26.78 kB / 3.441 GB, free: 74.81 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/8.105, allocations: 26.72 kB / 3.441 GB, free: 74.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/8.106, allocations: 0.5887 MB / 3.441 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/8.106, allocations: 1 kB / 3.441 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/8.106, allocations: 12.62 kB / 3.441 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/8.106, allocations: 15.3 kB / 3.441 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/8.108, allocations: 493.9 kB / 3.442 GB, free: 74.37 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.003057/8.111, allocations: 2.602 MB / 3.444 GB, free: 72.19 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/8.112, allocations: 435 kB / 3.445 GB, free: 72.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/8.112, allocations: 132.2 kB / 3.445 GB, free: 72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/8.155, allocations: 24.16 MB / 3.468 GB, free: 56.87 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/8.155, allocations: 33.06 kB / 3.468 GB, free: 56.83 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.847e-06/8.155, allocations: 0 / 3.468 GB, free: 56.83 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002175/8.157, allocations: 0.6271 MB / 3.469 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/8.157, allocations: 107.8 kB / 3.469 GB, free: 56.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/8.157, allocations: 272.6 kB / 3.469 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/8.157, allocations: 25.7 kB / 3.469 GB, free: 56.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/8.158, allocations: 217.4 kB / 3.47 GB, free: 56.15 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.107e-05/8.158, allocations: 81.83 kB / 3.47 GB, free: 56.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.441e-05/8.158, allocations: 4 kB / 3.47 GB, free: 56.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.379e-05/8.158, allocations: 345.8 kB / 3.47 GB, free: 55.76 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/8.158, allocations: 85.02 kB / 3.47 GB, free: 55.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/8.158, allocations: 188.3 kB / 3.47 GB, free: 55.58 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/8.158, allocations: 107.7 kB / 3.47 GB, free: 55.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/8.158, allocations: 3.969 kB / 3.47 GB, free: 55.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000473/8.159, allocations: 335.7 kB / 3.471 GB, free: 55.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/8.159, allocations: 3.906 kB / 3.471 GB, free: 55.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/8.159, allocations: 3.969 kB / 3.471 GB, free: 55.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/8.159, allocations: 3.844 kB / 3.471 GB, free: 55.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/8.159, allocations: 87.11 kB / 3.471 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/8.159, allocations: 7.375 kB / 3.471 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/8.16, allocations: 63.69 kB / 3.471 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/8.16, allocations: 11.81 kB / 3.471 GB, free: 55.36 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 8.826e-05/8.16, allocations: 121.4 kB / 3.471 GB, free: 55.24 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/8.16, allocations: 42.95 kB / 3.471 GB, free: 55.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/8.161, allocations: 1.854 MB / 3.473 GB, free: 54.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.653e-05/8.161, allocations: 29.81 kB / 3.473 GB, free: 54.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/8.161, allocations: 0 / 3.473 GB, free: 54.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/8.161, allocations: 2.906 kB / 3.473 GB, free: 54.33 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009379/8.162, allocations: 1.006 MB / 3.474 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/8.162, allocations: 0 / 3.474 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/8.163, allocations: 91.02 kB / 3.474 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/8.163, allocations: 3.281 kB / 3.474 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/8.163, allocations: 11.73 kB / 3.474 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/8.163, allocations: 0 / 3.474 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/8.163, allocations: 0 / 3.474 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008782/8.164, allocations: 0.9751 MB / 3.475 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/8.164, allocations: 218.6 kB / 3.475 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.8e-05/8.164, allocations: 11.91 kB / 3.475 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/8.164, allocations: 44.94 kB / 3.475 GB, free: 53.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/8.164, allocations: 33.06 kB / 3.475 GB, free: 53.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/8.164, allocations: 17.45 kB / 3.475 GB, free: 53.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003376/8.165, allocations: 316.7 kB / 3.475 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.703e-06/8.165, allocations: 0 / 3.475 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005688/8.17, allocations: 1.012 MB / 3.476 GB, free: 52.66 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.0085/8.179, allocations: 2.803 MB / 3.479 GB, free: 51.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008755/8.18, allocations: 0.5026 MB / 3.48 GB, free: 51.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/8.18, allocations: 2.844 kB / 3.48 GB, free: 51.22 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004398/8.18, allocations: 481.1 kB / 3.48 GB, free: 50.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/8.182, allocations: 193.3 kB / 3.48 GB, free: 50.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/8.186, allocations: 1.576 MB / 3.482 GB, free: 50.22 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/8.187, allocations: 0.9817 MB / 3.483 GB, free: 49.51 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004332/8.187, allocations: 250.3 kB / 3.483 GB, free: 49.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/8.187, allocations: 249 kB / 3.483 GB, free: 49.3 MB / 0.5105 GB Notification: Performance of SimCode: time 8.81e-07/8.187, allocations: 0 / 3.483 GB, free: 49.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06764/8.255, allocations: 40.94 MB / 3.523 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/8.255, allocations: 205.2 kB / 3.523 GB, free: 40.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.458/11.71, allocations: 0 / 3.523 GB, free: 40.55 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