Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.002144/0.002143, allocations: 180.9 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.177/2.177, 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.00111/0.00111, allocations: 78.72 kB / 267.5 MB, free: 14.05 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.2821/0.2821, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.719e-05/3.738e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.162/8.281, allocations: 2.754 GB / 3.227 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/8.281, allocations: 87.09 kB / 3.227 GB, free: 83.29 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.136/9.417, allocations: 216.7 MB / 3.439 GB, free: 82.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.553e-06/9.417, allocations: 0 / 3.439 GB, free: 82.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.088e-05/9.417, allocations: 8 kB / 3.439 GB, free: 82.79 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.00562/9.423, allocations: 1.188 MB / 3.44 GB, free: 81.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/9.423, allocations: 8.031 kB / 3.44 GB, free: 81.56 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/9.423, allocations: 72.72 kB / 3.44 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002503/9.425, allocations: 226.3 kB / 3.44 GB, free: 81.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009094/9.426, allocations: 364.4 kB / 3.44 GB, free: 80.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/9.426, allocations: 24.78 kB / 3.44 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/9.426, allocations: 28 kB / 3.44 GB, free: 80.83 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/9.428, allocations: 0.5846 MB / 3.441 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/9.428, allocations: 4 kB / 3.441 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/9.428, allocations: 15.66 kB / 3.441 GB, free: 80.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/9.428, allocations: 11.95 kB / 3.441 GB, free: 80.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/9.43, allocations: 497.8 kB / 3.441 GB, free: 79.7 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.003928/9.434, allocations: 2.609 MB / 3.444 GB, free: 76.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/9.436, allocations: 429.1 kB / 3.444 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/9.436, allocations: 136.8 kB / 3.445 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07249/9.509, allocations: 24.16 MB / 3.468 GB, free: 49.37 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/9.509, allocations: 34.56 kB / 3.468 GB, free: 49.33 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.946e-06/9.509, allocations: 0 / 3.468 GB, free: 49.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002825/9.512, allocations: 0.6295 MB / 3.469 GB, free: 48.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/9.512, allocations: 106.8 kB / 3.469 GB, free: 48.56 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/9.512, allocations: 270.7 kB / 3.469 GB, free: 48.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/9.512, allocations: 29.7 kB / 3.469 GB, free: 48.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/9.512, allocations: 258.4 kB / 3.469 GB, free: 48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/9.512, allocations: 82.59 kB / 3.47 GB, free: 47.93 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/9.512, allocations: 12 kB / 3.47 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.403e-05/9.513, allocations: 322.8 kB / 3.47 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/9.513, allocations: 83.98 kB / 3.47 GB, free: 47.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/9.513, allocations: 187 kB / 3.47 GB, free: 47.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/9.513, allocations: 107.9 kB / 3.47 GB, free: 47.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/9.513, allocations: 0 / 3.47 GB, free: 47.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007944/9.514, allocations: 317.2 kB / 3.471 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/9.514, allocations: 4 kB / 3.471 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/9.514, allocations: 7.984 kB / 3.471 GB, free: 46.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/9.514, allocations: 8.312 kB / 3.471 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006996/9.515, allocations: 95.88 kB / 3.471 GB, free: 46.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/9.515, allocations: 4 kB / 3.471 GB, free: 46.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/9.516, allocations: 71.58 kB / 3.471 GB, free: 46.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/9.516, allocations: 16 kB / 3.471 GB, free: 46.66 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.000131/9.516, allocations: 124.9 kB / 3.471 GB, free: 46.53 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-05/9.516, allocations: 35.58 kB / 3.471 GB, free: 46.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002468/9.518, allocations: 1.857 MB / 3.473 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.879e-05/9.519, allocations: 31.94 kB / 3.473 GB, free: 44.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/9.519, allocations: 0 / 3.473 GB, free: 44.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/9.519, allocations: 0 / 3.473 GB, free: 44.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/9.52, allocations: 1.003 MB / 3.474 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/9.52, allocations: 4 kB / 3.474 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006603/9.521, allocations: 95.86 kB / 3.474 GB, free: 43.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/9.521, allocations: 0 / 3.474 GB, free: 43.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/9.521, allocations: 11.95 kB / 3.474 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/9.521, allocations: 0 / 3.474 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/9.521, allocations: 0 / 3.474 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/9.522, allocations: 0.983 MB / 3.475 GB, free: 42.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/9.522, allocations: 223.4 kB / 3.475 GB, free: 42.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.42e-05/9.522, allocations: 8 kB / 3.475 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/9.523, allocations: 51.91 kB / 3.475 GB, free: 42.14 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/9.523, allocations: 31.95 kB / 3.475 GB, free: 42.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/9.523, allocations: 19.92 kB / 3.475 GB, free: 42.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000486/9.524, allocations: 317.2 kB / 3.475 GB, free: 41.78 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/9.524, allocations: 0 / 3.475 GB, free: 41.78 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004745/9.529, allocations: 1.011 MB / 3.476 GB, free: 40.77 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: 18 ($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) * 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.01099/9.54, allocations: 2.797 MB / 3.479 GB, free: 38.08 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001041/9.541, allocations: 0.4969 MB / 3.48 GB, free: 37.58 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/9.541, allocations: 4 kB / 3.48 GB, free: 37.58 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006009/9.541, allocations: 474.6 kB / 3.48 GB, free: 37.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/9.543, allocations: 213.5 kB / 3.48 GB, free: 36.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/9.549, allocations: 1.616 MB / 3.482 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004503/9.549, allocations: 0.9797 MB / 3.483 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/9.55, allocations: 255.3 kB / 3.483 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/9.55, allocations: 0 / 3.483 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.611/13.16, allocations: 29.32 MB / 3.512 GB, free: 4.633 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat