Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",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.002121/0.002127, allocations: 177.7 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.21/2.21, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 91.3 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2935/0.2935, allocations: 43.49 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.944e-05, allocations: 4.219 kB / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4183/0.4184, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6995/1.118, allocations: 218.5 MB / 0.6794 GB, free: 106.4 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/1.118, allocations: 84.23 kB / 0.6795 GB, free: 106.4 MB / 475.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.548/3.666, allocations: 0.5086 GB / 1.188 GB, free: 31.18 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.295e-06/3.667, allocations: 0 / 1.188 GB, free: 31.18 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0001362/3.667, allocations: 35.36 kB / 1.188 GB, free: 31.15 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.007515/3.674, allocations: 1.942 MB / 1.19 GB, free: 29.17 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/3.674, allocations: 8.031 kB / 1.19 GB, free: 29.16 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005046/3.679, allocations: 354.1 kB / 1.19 GB, free: 28.82 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003035/3.682, allocations: 0.8653 MB / 1.191 GB, free: 27.93 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/3.683, allocations: 28 kB / 1.191 GB, free: 27.9 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/3.683, allocations: 44 kB / 1.191 GB, free: 27.86 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002055/3.685, allocations: 0.7264 MB / 1.192 GB, free: 27.13 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/3.687, allocations: 0.9547 MB / 1.193 GB, free: 26.1 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/3.687, allocations: 3.953 kB / 1.193 GB, free: 26.09 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001723/3.687, allocations: 4 kB / 1.193 GB, free: 26.09 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/3.687, allocations: 20 kB / 1.193 GB, free: 26.07 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009418/3.697, allocations: 5.212 MB / 1.198 GB, free: 20.48 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/3.698, allocations: 476.3 kB / 1.198 GB, free: 20.01 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006395/3.699, allocations: 270.4 kB / 1.199 GB, free: 19.74 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008018/3.7, allocations: 0.9523 MB / 1.2 GB, free: 18.6 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/3.7, allocations: 51.11 kB / 1.2 GB, free: 18.54 MB / 0.4952 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001185/3.701, allocations: 91.33 kB / 1.2 GB, free: 18.45 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=65): time 8.366e-06/3.701, allocations: 0 / 1.2 GB, free: 18.45 MB / 0.4952 GB Notification: Performance of matching and sorting (n=65): time 0.01024/3.711, allocations: 1.318 MB / 1.201 GB, free: 17.12 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/3.711, allocations: 196.4 kB / 1.201 GB, free: 16.88 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/3.713, allocations: 0.6028 MB / 1.202 GB, free: 16.26 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0002984/3.713, allocations: 25.7 kB / 1.202 GB, free: 16.23 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.000351/3.713, allocations: 0.5287 MB / 1.202 GB, free: 15.69 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/3.714, allocations: 220.7 kB / 1.203 GB, free: 15.47 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.759e-05/3.714, allocations: 0 / 1.203 GB, free: 15.47 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 9.239e-05/3.714, allocations: 346.8 kB / 1.203 GB, free: 15.12 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006772/3.714, allocations: 262.6 kB / 1.203 GB, free: 14.87 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007774/3.715, allocations: 469.4 kB / 1.204 GB, free: 14.33 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/3.726, allocations: 1.518 MB / 1.205 GB, free: 12.81 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/3.726, allocations: 7.938 kB / 1.205 GB, free: 12.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01268/3.739, allocations: 2.085 MB / 1.207 GB, free: 10.7 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004108/3.739, allocations: 1.832 MB / 1.209 GB, free: 8.727 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/3.739, allocations: 8 kB / 1.209 GB, free: 8.719 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004274/3.744, allocations: 413.2 kB / 1.209 GB, free: 8.312 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/3.745, allocations: 255.7 kB / 1.21 GB, free: 8.062 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/3.749, allocations: 0.962 MB / 1.211 GB, free: 7.074 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/3.751, allocations: 71.84 kB / 1.211 GB, free: 7.004 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/3.751, allocations: 71.95 kB / 1.211 GB, free: 6.934 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/3.751, allocations: 4 kB / 1.211 GB, free: 6.93 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009887/3.761, allocations: 1.756 MB / 1.212 GB, free: 5.168 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/3.761, allocations: 4 kB / 1.212 GB, free: 5.164 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/3.761, allocations: 68.72 kB / 1.212 GB, free: 5.098 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/3.763, allocations: 275.8 kB / 1.213 GB, free: 4.828 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/3.765, allocations: 1.571 MB / 1.214 GB, free: 3.148 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/3.767, allocations: 71.92 kB / 1.214 GB, free: 3.078 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/3.767, allocations: 63.97 kB / 1.214 GB, free: 3.016 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003798/3.767, allocations: 116.8 kB / 1.215 GB, free: 2.895 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01275/3.78, allocations: 1.95 MB / 1.216 GB, free: 0.9297 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004515/3.78, allocations: 102.8 kB / 1.217 GB, free: 0.8281 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3888/4.169, allocations: 2.53 MB / 1.219 GB, free: 66.79 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/4.169, allocations: 8.062 kB / 1.219 GB, free: 66.79 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/4.169, allocations: 0 / 1.219 GB, free: 66.79 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/4.169, allocations: 3.797 kB / 1.219 GB, free: 66.79 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007835/4.177, allocations: 2.013 MB / 1.221 GB, free: 66.42 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/4.177, allocations: 2.812 kB / 1.221 GB, free: 66.42 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000989/4.178, allocations: 145.2 kB / 1.221 GB, free: 66.42 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/4.18, allocations: 293.7 kB / 1.221 GB, free: 66.41 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002124/4.18, allocations: 20.39 kB / 1.221 GB, free: 66.41 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/4.183, allocations: 0.9301 MB / 1.222 GB, free: 65.89 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/4.183, allocations: 8.734 kB / 1.222 GB, free: 65.89 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006194/4.189, allocations: 1.416 MB / 1.224 GB, free: 65.46 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/4.19, allocations: 328.5 kB / 1.224 GB, free: 65.33 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/4.191, allocations: 8.344 kB / 1.224 GB, free: 65.33 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/4.192, allocations: 68.56 kB / 1.224 GB, free: 65.32 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/4.193, allocations: 63.36 kB / 1.224 GB, free: 65.32 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001807/4.193, allocations: 49 kB / 1.224 GB, free: 65.32 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.001225/4.194, allocations: 0.5162 MB / 1.225 GB, free: 65.21 MB / 0.4952 GB Notification: Performance of sort global known variables: time 7.02e-07/4.194, allocations: 0.9062 kB / 1.225 GB, free: 65.21 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005689/4.2, allocations: 1.029 MB / 1.226 GB, free: 65.18 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.01066/4.21, allocations: 3.5 MB / 1.229 GB, free: 63.34 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.004056/4.215, allocations: 1.183 MB / 1.23 GB, free: 63.23 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/4.215, allocations: 4.562 kB / 1.23 GB, free: 63.23 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/4.216, allocations: 335.8 kB / 1.231 GB, free: 63.22 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004476/4.22, allocations: 427.2 kB / 1.231 GB, free: 63.2 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007377/4.228, allocations: 1.755 MB / 1.233 GB, free: 62.66 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009247/4.229, allocations: 1.1 MB / 1.234 GB, free: 61.96 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/4.23, allocations: 448.6 kB / 1.234 GB, free: 61.96 MB / 0.4952 GB Notification: Performance of SimCode: time 1.723e-06/4.23, allocations: 3.125 kB / 1.234 GB, free: 61.96 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.553/7.783, allocations: 32.22 MB / 1.266 GB, free: 61.06 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat does not exist to compare? outputFormat=mat