Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.001591/0.001591, allocations: 186 kB / 16.4 MB, free: 5.746 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.089/2.089, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.00119/0.001189, allocations: 103 kB / 270.9 MB, free: 8.383 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.5318/0.5318, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004722/0.0004721, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1409, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.818/8.959, allocations: 2.771 GB / 3.25 GB, free: 37.97 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/8.959, allocations: 86.14 kB / 3.25 GB, free: 37.93 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.254/10.21, allocations: 234.6 MB / 3.479 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.014e-06/10.21, allocations: 0 / 3.479 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.789e-05/10.21, allocations: 12 kB / 3.479 GB, free: 6.582 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006306/10.22, allocations: 1.321 MB / 3.48 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/10.22, allocations: 12.03 kB / 3.48 GB, free: 5.199 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/10.22, allocations: 66.53 kB / 3.48 GB, free: 5.125 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002809/10.22, allocations: 247.2 kB / 3.481 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/10.22, allocations: 412.2 kB / 3.481 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.543e-05/10.22, allocations: 28.66 kB / 3.481 GB, free: 4.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.149e-05/10.22, allocations: 28.52 kB / 3.481 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/10.23, allocations: 0.6246 MB / 3.482 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/10.23, allocations: 7.984 kB / 3.482 GB, free: 3.715 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/10.23, allocations: 19.95 kB / 3.482 GB, free: 3.695 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/10.23, allocations: 8 kB / 3.482 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/10.23, allocations: 0.6031 MB / 3.482 GB, free: 3.086 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.004394/10.23, allocations: 2.614 MB / 3.485 GB, free: 228 kB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3698/10.6, allocations: 459.9 kB / 3.485 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07807/10.68, allocations: 24.07 MB / 3.509 GB, free: 44.34 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/10.68, allocations: 37.41 kB / 3.509 GB, free: 44.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.046e-06/10.68, allocations: 0 / 3.509 GB, free: 44.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.004375/10.69, allocations: 0.836 MB / 3.51 GB, free: 44.27 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/10.69, allocations: 106.1 kB / 3.51 GB, free: 44.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/10.69, allocations: 335.6 kB / 3.51 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/10.69, allocations: 28.83 kB / 3.51 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/10.69, allocations: 274.5 kB / 3.51 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.182e-05/10.69, allocations: 82.38 kB / 3.51 GB, free: 43.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/10.69, allocations: 5.938 kB / 3.51 GB, free: 43.81 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.253e-05/10.69, allocations: 325.3 kB / 3.511 GB, free: 43.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007022/10.69, allocations: 164.9 kB / 3.511 GB, free: 43.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/10.69, allocations: 262.5 kB / 3.511 GB, free: 43.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007875/10.69, allocations: 183.3 kB / 3.511 GB, free: 43.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/10.69, allocations: 3.75 kB / 3.511 GB, free: 43.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001776/10.69, allocations: 462.4 kB / 3.512 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000251/10.69, allocations: 1.052 MB / 3.513 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/10.69, allocations: 0 / 3.513 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/10.69, allocations: 5.938 kB / 3.513 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/10.69, allocations: 114.5 kB / 3.513 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/10.69, allocations: 2.906 kB / 3.513 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/10.69, allocations: 77.72 kB / 3.513 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/10.69, allocations: 26.25 kB / 3.513 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/10.69, allocations: 3.281 kB / 3.513 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001667/10.7, allocations: 425.8 kB / 3.513 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/10.7, allocations: 3.531 kB / 3.513 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/10.7, allocations: 3.875 kB / 3.513 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007488/10.7, allocations: 109.5 kB / 3.514 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/10.7, allocations: 14.97 kB / 3.514 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/10.7, allocations: 59.31 kB / 3.514 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/10.7, allocations: 17.88 kB / 3.514 GB, free: 42.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,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 initialization (38): * Single equations (assignments): 38 * 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.0003681/10.7, allocations: 238.1 kB / 3.514 GB, free: 42.04 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/10.7, allocations: 39.97 kB / 3.514 GB, free: 42.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003582/10.7, allocations: 1.977 MB / 3.516 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.914e-05/10.7, allocations: 32.41 kB / 3.516 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/10.7, allocations: 3.953 kB / 3.516 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/10.7, allocations: 1.875 kB / 3.516 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/10.7, allocations: 1.043 MB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/10.7, allocations: 0 / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006649/10.7, allocations: 89.09 kB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/10.7, allocations: 7.734 kB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/10.7, allocations: 6.094 kB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/10.7, allocations: 3.328 kB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/10.7, allocations: 3 kB / 3.517 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/10.71, allocations: 1.135 MB / 3.518 GB, free: 41.33 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004231/10.71, allocations: 261 kB / 3.518 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/10.71, allocations: 6.438 kB / 3.518 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006295/10.71, allocations: 49.31 kB / 3.518 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/10.71, allocations: 33.5 kB / 3.518 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/10.71, allocations: 10.3 kB / 3.518 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006411/10.71, allocations: 377.7 kB / 3.519 GB, free: 41.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.9e-07/10.71, allocations: 7.266 kB / 3.519 GB, free: 41.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006089/10.71, allocations: 1.183 MB / 3.52 GB, free: 41.09 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,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.0134/10.73, allocations: 3.056 MB / 3.523 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002933/10.73, allocations: 0.8623 MB / 3.524 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/10.73, allocations: 0 / 3.524 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001081/10.73, allocations: 0.5294 MB / 3.524 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/10.73, allocations: 213.7 kB / 3.525 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008069/10.74, allocations: 4.5 MB / 3.529 GB, free: 37.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/10.74, allocations: 0.9964 MB / 3.53 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005483/10.74, allocations: 276.5 kB / 3.53 GB, free: 36.69 MB / 0.4948 GB Notification: Performance of SimCode: time 1.122e-06/10.74, allocations: 0 / 3.53 GB, free: 36.69 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.598/14.34, allocations: 30.28 MB / 3.56 GB, free: 34.3 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat