Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.001539/0.001538, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.105/2.105, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001144/0.001143, allocations: 89.61 kB / 270.9 MB, free: 8.367 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.5259/0.5259, allocations: 43.56 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006466/0.0006468, allocations: 16 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1479, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.925/9.073, allocations: 2.772 GB / 3.25 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003518/9.074, allocations: 86.33 kB / 3.251 GB, free: 33.61 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.607/10.68, allocations: 237.7 MB / 3.483 GB, free: 59.26 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.245e-06/10.68, allocations: 0 / 3.483 GB, free: 59.26 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.983e-05/10.68, allocations: 10.83 kB / 3.483 GB, free: 59.26 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.006823/10.69, allocations: 1.341 MB / 3.484 GB, free: 58.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/10.69, allocations: 8.906 kB / 3.484 GB, free: 58.7 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001971/10.69, allocations: 75.89 kB / 3.484 GB, free: 58.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003078/10.69, allocations: 251.2 kB / 3.484 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/10.69, allocations: 412.8 kB / 3.485 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/10.69, allocations: 29.66 kB / 3.485 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-05/10.69, allocations: 39.25 kB / 3.485 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002643/10.69, allocations: 0.631 MB / 3.485 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/10.7, allocations: 1.766 kB / 3.485 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.227e-05/10.7, allocations: 14.88 kB / 3.485 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/10.7, allocations: 13.3 kB / 3.485 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/10.7, allocations: 0.5867 MB / 3.486 GB, free: 58.28 MB / 0.4948 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.00504/10.7, allocations: 2.728 MB / 3.489 GB, free: 56.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003087/10.71, allocations: 0.553 MB / 3.489 GB, free: 56.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07521/10.78, allocations: 24.07 MB / 3.513 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/10.78, allocations: 35 kB / 3.513 GB, free: 41.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 3.036e-06/10.78, allocations: 0 / 3.513 GB, free: 41.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.00414/10.79, allocations: 0.8139 MB / 3.514 GB, free: 41.61 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/10.79, allocations: 105.7 kB / 3.514 GB, free: 41.49 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005947/10.79, allocations: 345.1 kB / 3.514 GB, free: 41.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/10.79, allocations: 31.14 kB / 3.514 GB, free: 41.35 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/10.79, allocations: 276.4 kB / 3.514 GB, free: 41.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/10.79, allocations: 88.56 kB / 3.514 GB, free: 41.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/10.79, allocations: 15.56 kB / 3.514 GB, free: 41.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.115e-05/10.79, allocations: 332.7 kB / 3.515 GB, free: 40.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006268/10.79, allocations: 156.6 kB / 3.515 GB, free: 40.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006873/10.79, allocations: 270.2 kB / 3.515 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006756/10.79, allocations: 177 kB / 3.515 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/10.79, allocations: 5.719 kB / 3.515 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001666/10.79, allocations: 469.5 kB / 3.516 GB, free: 40.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003023/10.79, allocations: 1.396 MB / 3.517 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/10.79, allocations: 3.219 kB / 3.517 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/10.79, allocations: 10.39 kB / 3.517 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/10.79, allocations: 112.8 kB / 3.517 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/10.79, allocations: 10.59 kB / 3.517 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/10.79, allocations: 73.95 kB / 3.517 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.878e-05/10.79, allocations: 24.11 kB / 3.517 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/10.79, allocations: 7.688 kB / 3.517 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001569/10.79, allocations: 414.5 kB / 3.518 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/10.79, allocations: 8.609 kB / 3.518 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/10.79, allocations: 6.156 kB / 3.518 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007033/10.8, allocations: 105.4 kB / 3.518 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/10.8, allocations: 8.062 kB / 3.518 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005506/10.8, allocations: 68.22 kB / 3.518 GB, free: 39.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-05/10.8, allocations: 20.58 kB / 3.518 GB, free: 39.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.0004041/10.8, allocations: 248.5 kB / 3.518 GB, free: 38.95 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/10.8, allocations: 42.86 kB / 3.518 GB, free: 38.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003568/10.8, allocations: 1.955 MB / 3.52 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.282e-05/10.8, allocations: 32.69 kB / 3.52 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/10.8, allocations: 0 / 3.52 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/10.8, allocations: 3.953 kB / 3.52 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/10.8, allocations: 1.057 MB / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/10.8, allocations: 0 / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006754/10.8, allocations: 86.97 kB / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.118e-06/10.8, allocations: 0 / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/10.8, allocations: 16.59 kB / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/10.8, allocations: 3.188 kB / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/10.8, allocations: 0 / 3.521 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/10.8, allocations: 1.112 MB / 3.522 GB, free: 38.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004162/10.81, allocations: 262.1 kB / 3.523 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/10.81, allocations: 12.89 kB / 3.523 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/10.81, allocations: 44.23 kB / 3.523 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/10.81, allocations: 37.58 kB / 3.523 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/10.81, allocations: 16.05 kB / 3.523 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006632/10.81, allocations: 383.2 kB / 3.523 GB, free: 37.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.31e-07/10.81, allocations: 0 / 3.523 GB, free: 37.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006298/10.81, allocations: 1.162 MB / 3.524 GB, free: 37.81 MB / 0.4948 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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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.01315/10.83, allocations: 3.002 MB / 3.527 GB, free: 36.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00268/10.83, allocations: 0.8577 MB / 3.528 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/10.83, allocations: 3.188 kB / 3.528 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001041/10.83, allocations: 0.514 MB / 3.528 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/10.83, allocations: 222.2 kB / 3.529 GB, free: 36.83 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008658/10.84, allocations: 5.136 MB / 3.534 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/10.84, allocations: 1.006 MB / 3.535 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006015/10.84, allocations: 283.1 kB / 3.535 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/10.84, allocations: 3.609 kB / 3.535 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.488/14.33, allocations: 30.18 MB / 3.564 GB, free: 30.03 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat