Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",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.001383/0.001383, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.0009496/0.0009496, allocations: 82.16 kB / 261.7 MB, free: 1.695 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.2415/0.2415, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.95e-05, allocations: 0 / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1376, allocations: 58.86 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.382/7.52, allocations: 2.772 GB / 3.238 GB, free: 94.34 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/7.52, allocations: 87.86 kB / 3.238 GB, free: 94.29 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.397/9.917, allocations: 0.5721 GB / 3.81 GB, free: 47.85 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.904e-06/9.918, allocations: 0 / 3.81 GB, free: 47.85 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.621e-05/9.918, allocations: 38.7 kB / 3.81 GB, free: 47.84 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01188/9.93, allocations: 2.552 MB / 3.812 GB, free: 46.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/9.93, allocations: 7.875 kB / 3.812 GB, free: 46.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007824/9.937, allocations: 0.8703 MB / 3.813 GB, free: 46.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003004/9.941, allocations: 1.03 MB / 3.814 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.104e-05/9.941, allocations: 45.59 kB / 3.814 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/9.941, allocations: 69.44 kB / 3.814 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002399/9.943, allocations: 1.375 MB / 3.816 GB, free: 46.34 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/9.945, allocations: 1.367 MB / 3.817 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/9.946, allocations: 6.719 kB / 3.817 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/9.946, allocations: 3.375 kB / 3.817 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/9.946, allocations: 26.09 kB / 3.817 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08984/10.04, allocations: 46.49 MB / 3.862 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/10.04, allocations: 1.175 MB / 3.864 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/10.04, allocations: 0.4912 MB / 3.864 GB, free: 33.69 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0356/10.08, allocations: 16.41 MB / 3.88 GB, free: 23.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.257e-05/10.08, allocations: 53.72 kB / 3.88 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001479/10.08, allocations: 113.9 kB / 3.88 GB, free: 22.99 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=103): time 9.759e-06/10.08, allocations: 7.938 kB / 3.88 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=103): time 0.009667/10.09, allocations: 2.389 MB / 3.883 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/10.09, allocations: 192.9 kB / 3.883 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/10.09, allocations: 0.712 MB / 3.883 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002513/10.09, allocations: 28.98 kB / 3.883 GB, free: 22.42 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005262/10.09, allocations: 0.5968 MB / 3.884 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/10.09, allocations: 334.8 kB / 3.884 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/10.09, allocations: 4 kB / 3.884 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001875/10.09, allocations: 360.2 kB / 3.885 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007428/10.09, allocations: 441.1 kB / 3.885 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/10.09, allocations: 0.74 MB / 3.886 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00425/10.1, allocations: 0.9898 MB / 3.887 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/10.1, allocations: 0 / 3.887 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006475/10.1, allocations: 1.936 MB / 3.889 GB, free: 21.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001555/10.1, allocations: 3.147 MB / 3.892 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-05/10.1, allocations: 7.875 kB / 3.892 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003396/10.11, allocations: 0.6765 MB / 3.892 GB, free: 17.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/10.11, allocations: 425.9 kB / 3.893 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/10.11, allocations: 1.097 MB / 3.894 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/10.11, allocations: 151.5 kB / 3.894 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002939/10.11, allocations: 81.38 kB / 3.894 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/10.11, allocations: 7.25 kB / 3.894 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005205/10.12, allocations: 1.512 MB / 3.896 GB, free: 16.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/10.12, allocations: 11.47 kB / 3.896 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/10.12, allocations: 87.16 kB / 3.896 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/10.12, allocations: 457.2 kB / 3.896 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/10.12, allocations: 1.709 MB / 3.898 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/10.13, allocations: 150.5 kB / 3.898 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/10.13, allocations: 71.06 kB / 3.898 GB, free: 13.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0006333/10.13, allocations: 148.2 kB / 3.898 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00697/10.13, allocations: 1.617 MB / 3.9 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004944/10.14, allocations: 122.5 kB / 3.9 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009059/10.14, allocations: 5.349 MB / 3.905 GB, free: 7.441 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.458e-05/10.14, allocations: 64.91 kB / 3.905 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/10.14, allocations: 4 kB / 3.905 GB, free: 7.395 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.366e-05/10.14, allocations: 8.109 kB / 3.905 GB, free: 7.395 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/10.16, allocations: 6.618 MB / 3.912 GB, free: 17.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/10.16, allocations: 0 / 3.912 GB, free: 17.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/10.16, allocations: 285.9 kB / 3.912 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/10.16, allocations: 1.879 MB / 3.914 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/10.16, allocations: 19.52 kB / 3.914 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/10.16, allocations: 1.865 MB / 3.916 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/10.16, allocations: 0 / 3.916 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00697/10.17, allocations: 3.006 MB / 3.919 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/10.17, allocations: 0.7793 MB / 3.919 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006337/10.17, allocations: 0 / 3.919 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/10.18, allocations: 112.4 kB / 3.919 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/10.18, allocations: 130.1 kB / 3.92 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/10.18, allocations: 54.56 kB / 3.92 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003101/10.18, allocations: 1.236 MB / 3.921 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/10.18, allocations: 0 / 3.921 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01355/10.19, allocations: 1.801 MB / 3.923 GB, free: 7.707 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 33 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse30.phase,$cse30.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse62.phase,$cse62.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01887/10.21, allocations: 5.382 MB / 3.928 GB, free: 2.996 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005467/10.22, allocations: 2.348 MB / 3.93 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/10.22, allocations: 3.938 kB / 3.93 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.4272/10.64, allocations: 1.104 MB / 3.931 GB, free: 78.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/10.65, allocations: 0.5433 MB / 3.932 GB, free: 78.22 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/10.66, allocations: 3.902 MB / 3.936 GB, free: 77.37 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/10.66, allocations: 1.666 MB / 3.937 GB, free: 76.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00451/10.67, allocations: 1.896 MB / 3.939 GB, free: 76.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/10.67, allocations: 0.926 MB / 3.94 GB, free: 76.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.353e-06/10.67, allocations: 0 / 3.94 GB, free: 76.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1819/10.85, allocations: 74.64 MB / 4.013 GB, free: 73.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/10.85, allocations: 197.8 kB / 4.013 GB, free: 73.38 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.538/16.39, allocations: 0 / 4.013 GB, free: 73.38 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat