Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_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.00157/0.00157, allocations: 177.5 kB / 8.005 MB, free: 1.066 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.079/2.079, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009946/0.0009946, allocations: 86.64 kB / 261.7 MB, free: 1.684 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.265/0.265, allocations: 43.48 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.906e-05, allocations: 4 kB / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 58.86 MB / 477.2 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5762/0.7162, allocations: 218.5 MB / 0.6794 GB, free: 10.03 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.7165, allocations: 93.03 kB / 0.6795 GB, free: 9.984 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.157/2.873, allocations: 0.5086 GB / 1.188 GB, free: 78.31 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.074e-06/2.873, allocations: 0 / 1.188 GB, free: 78.31 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001015/2.874, allocations: 43.27 kB / 1.188 GB, free: 78.3 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.007475/2.881, allocations: 1.924 MB / 1.19 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.427e-05/2.881, allocations: 9.562 kB / 1.19 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004302/2.885, allocations: 365.6 kB / 1.19 GB, free: 77.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/2.888, allocations: 0.8648 MB / 1.191 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/2.888, allocations: 27.34 kB / 1.191 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/2.888, allocations: 47.41 kB / 1.191 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001305/2.889, allocations: 0.722 MB / 1.192 GB, free: 77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/2.89, allocations: 0.95 MB / 1.193 GB, free: 76.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/2.89, allocations: 6.031 kB / 1.193 GB, free: 76.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.671e-05/2.891, allocations: 3.531 kB / 1.193 GB, free: 76.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/2.891, allocations: 25.05 kB / 1.193 GB, free: 76.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005389/2.896, allocations: 5.208 MB / 1.198 GB, free: 73.17 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007475/2.897, allocations: 478.2 kB / 1.199 GB, free: 73.14 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/2.897, allocations: 269.2 kB / 1.199 GB, free: 73.13 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006475/2.898, allocations: 0.9543 MB / 1.2 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/2.898, allocations: 43.22 kB / 1.2 GB, free: 72.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000681/2.898, allocations: 96.44 kB / 1.2 GB, free: 72.03 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=65): time 3.867e-06/2.898, allocations: 0 / 1.2 GB, free: 72.03 MB / 0.4948 GB Notification: Performance of matching and sorting (n=65): time 0.005861/2.904, allocations: 1.322 MB / 1.201 GB, free: 71.92 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/2.904, allocations: 188.3 kB / 1.201 GB, free: 71.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007919/2.905, allocations: 0.6054 MB / 1.202 GB, free: 71.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.72e-05/2.905, allocations: 29.39 kB / 1.202 GB, free: 71.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003063/2.906, allocations: 0.5219 MB / 1.202 GB, free: 71.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/2.906, allocations: 220.3 kB / 1.203 GB, free: 71.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-05/2.906, allocations: 0 / 1.203 GB, free: 71.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.873e-05/2.906, allocations: 344.9 kB / 1.203 GB, free: 70.83 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/2.906, allocations: 261.9 kB / 1.203 GB, free: 70.83 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/2.907, allocations: 468.1 kB / 1.204 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00662/2.913, allocations: 1.518 MB / 1.205 GB, free: 70.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.106e-06/2.914, allocations: 2.281 kB / 1.205 GB, free: 70.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008201/2.922, allocations: 2.138 MB / 1.207 GB, free: 70.47 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005561/2.922, allocations: 1.841 MB / 1.209 GB, free: 68.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/2.922, allocations: 7.406 kB / 1.209 GB, free: 68.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002696/2.925, allocations: 411.6 kB / 1.209 GB, free: 68.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/2.926, allocations: 255.7 kB / 1.21 GB, free: 68.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/2.928, allocations: 0.9693 MB / 1.211 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/2.93, allocations: 71.7 kB / 1.211 GB, free: 68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/2.93, allocations: 66.73 kB / 1.211 GB, free: 68 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/2.93, allocations: 11.64 kB / 1.211 GB, free: 68 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00588/2.936, allocations: 1.747 MB / 1.212 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/2.936, allocations: 7.562 kB / 1.212 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002782/2.936, allocations: 77.84 kB / 1.213 GB, free: 67.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008652/2.937, allocations: 272 kB / 1.213 GB, free: 67.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/2.938, allocations: 1.59 MB / 1.214 GB, free: 66.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/2.939, allocations: 69.41 kB / 1.214 GB, free: 66.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/2.939, allocations: 59.94 kB / 1.214 GB, free: 66.63 MB / 0.4948 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.0003385/2.94, allocations: 125.6 kB / 1.215 GB, free: 66.51 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007698/2.948, allocations: 1.937 MB / 1.217 GB, free: 66.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/2.948, allocations: 102 kB / 1.217 GB, free: 66.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/2.954, allocations: 2.538 MB / 1.219 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/2.954, allocations: 11.95 kB / 1.219 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/2.954, allocations: 0 / 1.219 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/2.954, allocations: 7.562 kB / 1.219 GB, free: 64.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005459/2.96, allocations: 2.003 MB / 1.221 GB, free: 62.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/2.96, allocations: 7.062 kB / 1.221 GB, free: 62.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/2.96, allocations: 148.4 kB / 1.221 GB, free: 62.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/2.961, allocations: 297.2 kB / 1.221 GB, free: 62.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.064e-05/2.961, allocations: 22.56 kB / 1.222 GB, free: 62.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001371/2.963, allocations: 0.9339 MB / 1.222 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/2.963, allocations: 4 kB / 1.222 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00351/2.966, allocations: 1.419 MB / 1.224 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007999/2.967, allocations: 325.4 kB / 1.224 GB, free: 60.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003489/2.967, allocations: 4 kB / 1.224 GB, free: 60.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/2.968, allocations: 71.27 kB / 1.224 GB, free: 60.06 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/2.969, allocations: 73.73 kB / 1.224 GB, free: 60.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/2.969, allocations: 42.42 kB / 1.224 GB, free: 59.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007799/2.97, allocations: 0.5155 MB / 1.225 GB, free: 59.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.8e-07/2.97, allocations: 0 / 1.225 GB, free: 59.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00426/2.974, allocations: 1.031 MB / 1.226 GB, free: 58.49 MB / 0.4948 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.006709/2.981, allocations: 3.521 MB / 1.229 GB, free: 55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002498/2.983, allocations: 1.204 MB / 1.23 GB, free: 53.79 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/2.983, allocations: 2.188 kB / 1.23 GB, free: 53.79 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005711/2.984, allocations: 329.8 kB / 1.231 GB, free: 53.47 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/2.986, allocations: 428.6 kB / 1.231 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/2.992, allocations: 1.726 MB / 1.233 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006736/2.992, allocations: 1.107 MB / 1.234 GB, free: 50.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002687/2.995, allocations: 0.8186 MB / 1.235 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007246/2.996, allocations: 418.9 kB / 1.235 GB, free: 49.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.854e-06/2.996, allocations: 0 / 1.235 GB, free: 49.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06979/3.066, allocations: 35.4 MB / 1.27 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002522/3.066, allocations: 209.2 kB / 1.27 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.497/6.563, allocations: 0 / 1.27 GB, free: 13.88 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat does not exist to compare? outputFormat=mat