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.001645/0.001644, allocations: 181.1 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.072/2.072, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001198/0.001197, allocations: 86.64 kB / 267.5 MB, free: 14.12 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.2864/0.2864, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.466e-05/4.494e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1332, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.218/8.351, allocations: 2.771 GB / 3.244 GB, free: 67.46 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/8.352, allocations: 82.11 kB / 3.244 GB, free: 67.42 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.226/9.577, allocations: 233.9 MB / 3.472 GB, free: 50.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.813e-06/9.578, allocations: 0 / 3.472 GB, free: 50.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.073e-05/9.578, allocations: 12 kB / 3.472 GB, free: 50.42 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006316/9.584, allocations: 1.281 MB / 3.474 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/9.584, allocations: 8.031 kB / 3.474 GB, free: 49.08 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00012/9.584, allocations: 70.53 kB / 3.474 GB, free: 49 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00275/9.587, allocations: 243.2 kB / 3.474 GB, free: 48.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/9.588, allocations: 416.2 kB / 3.474 GB, free: 48.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.994e-05/9.588, allocations: 28.78 kB / 3.474 GB, free: 48.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.533e-05/9.588, allocations: 28 kB / 3.474 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/9.59, allocations: 0.6104 MB / 3.475 GB, free: 47.62 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/9.59, allocations: 3.938 kB / 3.475 GB, free: 47.62 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.614e-05/9.59, allocations: 15.95 kB / 3.475 GB, free: 47.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/9.59, allocations: 8 kB / 3.475 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/9.592, allocations: 0.5213 MB / 3.475 GB, free: 47.07 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.00437/9.596, allocations: 2.625 MB / 3.478 GB, free: 44.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/9.598, allocations: 430.2 kB / 3.478 GB, free: 43.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/9.598, allocations: 140.8 kB / 3.479 GB, free: 43.63 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07301/9.672, allocations: 24.16 MB / 3.502 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.885e-05/9.672, allocations: 38.5 kB / 3.502 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 4.618e-06/9.672, allocations: 7.938 kB / 3.502 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002919/9.675, allocations: 0.6529 MB / 3.503 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/9.675, allocations: 106.8 kB / 3.503 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005181/9.675, allocations: 315.5 kB / 3.503 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/9.675, allocations: 33.7 kB / 3.503 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/9.675, allocations: 270.3 kB / 3.503 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.494e-05/9.676, allocations: 82.84 kB / 3.504 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/9.676, allocations: 4 kB / 3.504 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.65e-05/9.676, allocations: 330.8 kB / 3.504 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/9.676, allocations: 104 kB / 3.504 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/9.676, allocations: 211.7 kB / 3.504 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/9.677, allocations: 124 kB / 3.504 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/9.677, allocations: 0 / 3.504 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009009/9.678, allocations: 355 kB / 3.505 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002337/9.678, allocations: 1.051 MB / 3.506 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/9.678, allocations: 8 kB / 3.506 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/9.678, allocations: 4 kB / 3.506 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008185/9.679, allocations: 103.9 kB / 3.506 GB, free: 12.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/9.679, allocations: 4 kB / 3.506 GB, free: 12.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008029/9.68, allocations: 79.59 kB / 3.506 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/9.68, allocations: 19.98 kB / 3.506 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/9.68, allocations: 4 kB / 3.506 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008022/9.68, allocations: 311.8 kB / 3.506 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/9.68, allocations: 11.94 kB / 3.506 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/9.68, allocations: 4 kB / 3.506 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000745/9.681, allocations: 112.2 kB / 3.506 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/9.681, allocations: 4 kB / 3.506 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/9.682, allocations: 63.64 kB / 3.506 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/9.682, allocations: 20 kB / 3.506 GB, free: 12.01 MB / 0.5105 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 () * 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.0001511/9.682, allocations: 125.1 kB / 3.506 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/9.682, allocations: 43.48 kB / 3.507 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/9.685, allocations: 1.916 MB / 3.508 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-05/9.685, allocations: 27.95 kB / 3.508 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/9.685, allocations: 0 / 3.508 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/9.685, allocations: 3.984 kB / 3.508 GB, free: 9.875 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/9.686, allocations: 1.039 MB / 3.509 GB, free: 8.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/9.686, allocations: 0 / 3.509 GB, free: 8.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006713/9.687, allocations: 91.86 kB / 3.51 GB, free: 8.691 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-05/9.687, allocations: 3.953 kB / 3.51 GB, free: 8.688 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/9.687, allocations: 12 kB / 3.51 GB, free: 8.676 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/9.687, allocations: 4 kB / 3.51 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/9.687, allocations: 0 / 3.51 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/9.689, allocations: 1.028 MB / 3.511 GB, free: 7.633 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003693/9.689, allocations: 263.4 kB / 3.511 GB, free: 7.355 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/9.689, allocations: 15.95 kB / 3.511 GB, free: 7.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006405/9.69, allocations: 47.95 kB / 3.511 GB, free: 7.293 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/9.69, allocations: 39.89 kB / 3.511 GB, free: 7.254 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/9.69, allocations: 8 kB / 3.511 GB, free: 7.246 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005633/9.691, allocations: 365.5 kB / 3.511 GB, free: 6.891 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/9.691, allocations: 0 / 3.511 GB, free: 6.891 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005877/9.696, allocations: 1.194 MB / 3.512 GB, free: 5.695 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,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete 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.01171/9.708, allocations: 2.955 MB / 3.515 GB, free: 2.715 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001585/9.71, allocations: 0.7059 MB / 3.516 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/9.71, allocations: 3.938 kB / 3.516 GB, free: 2.008 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006553/9.711, allocations: 485.8 kB / 3.516 GB, free: 1.535 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/9.713, allocations: 221.7 kB / 3.517 GB, free: 1.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3769/10.09, allocations: 1.72 MB / 3.518 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006723/10.09, allocations: 0.9972 MB / 3.519 GB, free: 86.14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005671/10.09, allocations: 276.9 kB / 3.52 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of SimCode: time 2.555e-06/10.09, allocations: 0 / 3.52 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.55/13.64, allocations: 31.03 MB / 3.55 GB, free: 84.46 MB / 0.5105 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