Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 169.9 kB / 8.74 MB, free: 340 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 96.84 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2231/0.2231, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.826e-05/1.886e-05, allocations: 4 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1492, allocations: 61.92 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.632/7.781, allocations: 2.777 GB / 3.272 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003726/7.781, allocations: 79.05 kB / 3.272 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.18/9.961, allocations: 0.5786 GB / 3.85 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.743e-06/9.961, allocations: 0 / 3.85 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.747e-05/9.961, allocations: 34.34 kB / 3.85 GB, free: 13.73 MB / 0.5261 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.0106/9.972, allocations: 2.555 MB / 3.853 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/9.972, allocations: 11.98 kB / 3.853 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006917/9.979, allocations: 0.8717 MB / 3.854 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002289/9.981, allocations: 1.041 MB / 3.855 GB, free: 9.215 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.088e-05/9.981, allocations: 44 kB / 3.855 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/9.982, allocations: 68 kB / 3.855 GB, free: 9.105 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002422/9.984, allocations: 1.371 MB / 3.856 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/9.986, allocations: 1.363 MB / 3.857 GB, free: 6.242 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/9.986, allocations: 7.938 kB / 3.857 GB, free: 6.234 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/9.987, allocations: 4 kB / 3.857 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/9.987, allocations: 31.95 kB / 3.857 GB, free: 6.199 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.649/10.64, allocations: 46.48 MB / 3.903 GB, free: 42.95 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004033/10.64, allocations: 1.18 MB / 3.904 GB, free: 42.92 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/10.64, allocations: 0.4958 MB / 3.904 GB, free: 42.91 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03898/10.68, allocations: 16.41 MB / 3.921 GB, free: 32.62 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.834e-05/10.68, allocations: 48.06 kB / 3.921 GB, free: 32.58 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001829/10.68, allocations: 115.5 kB / 3.921 GB, free: 32.58 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=103): time 1.536e-05/10.68, allocations: 0 / 3.921 GB, free: 32.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=103): time 0.01401/10.7, allocations: 2.394 MB / 3.923 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/10.7, allocations: 195.2 kB / 3.923 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/10.7, allocations: 0.7115 MB / 3.924 GB, free: 32.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003447/10.7, allocations: 29.52 kB / 3.924 GB, free: 32.07 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007041/10.7, allocations: 0.5889 MB / 3.924 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005333/10.7, allocations: 336.9 kB / 3.925 GB, free: 31.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/10.7, allocations: 0 / 3.925 GB, free: 31.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001698/10.7, allocations: 360.2 kB / 3.925 GB, free: 31.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000892/10.7, allocations: 447.8 kB / 3.926 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/10.7, allocations: 0.746 MB / 3.926 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/10.71, allocations: 0.9741 MB / 3.927 GB, free: 31 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/10.71, allocations: 6.656 kB / 3.927 GB, free: 31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006323/10.71, allocations: 1.94 MB / 3.929 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001026/10.71, allocations: 3.144 MB / 3.932 GB, free: 27.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.474e-05/10.71, allocations: 14.97 kB / 3.932 GB, free: 27.56 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003449/10.72, allocations: 0.6874 MB / 3.933 GB, free: 27.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/10.72, allocations: 411.8 kB / 3.933 GB, free: 27.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/10.72, allocations: 1.101 MB / 3.934 GB, free: 26.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/10.72, allocations: 153.5 kB / 3.935 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/10.72, allocations: 83.52 kB / 3.935 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/10.72, allocations: 3.594 kB / 3.935 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005011/10.73, allocations: 1.511 MB / 3.936 GB, free: 26.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/10.73, allocations: 9.344 kB / 3.936 GB, free: 26.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003528/10.73, allocations: 86.83 kB / 3.936 GB, free: 26.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/10.73, allocations: 453 kB / 3.937 GB, free: 26.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/10.73, allocations: 1.713 MB / 3.938 GB, free: 25.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/10.73, allocations: 140.5 kB / 3.938 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/10.73, allocations: 73.58 kB / 3.939 GB, free: 25.57 MB / 0.5417 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.0005067/10.74, allocations: 150.9 kB / 3.939 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005761/10.74, allocations: 1.611 MB / 3.94 GB, free: 25.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/10.74, allocations: 121 kB / 3.94 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008313/10.75, allocations: 5.365 MB / 3.946 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.484e-05/10.75, allocations: 52.56 kB / 3.946 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/10.75, allocations: 3.75 kB / 3.946 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/10.75, allocations: 3.469 kB / 3.946 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/10.76, allocations: 6.632 MB / 3.952 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/10.76, allocations: 8.188 kB / 3.952 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/10.76, allocations: 287.7 kB / 3.952 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003322/10.76, allocations: 1.878 MB / 3.954 GB, free: 24.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/10.77, allocations: 17.72 kB / 3.954 GB, free: 24.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/10.77, allocations: 1.851 MB / 3.956 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/10.77, allocations: 0 / 3.956 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005285/10.77, allocations: 3.001 MB / 3.959 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/10.77, allocations: 0.7727 MB / 3.96 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000563/10.77, allocations: 0 / 3.96 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/10.78, allocations: 107.2 kB / 3.96 GB, free: 22.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/10.78, allocations: 137.3 kB / 3.96 GB, free: 22.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/10.78, allocations: 49.78 kB / 3.96 GB, free: 22.74 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002194/10.78, allocations: 1.239 MB / 3.961 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/10.78, allocations: 0 / 3.961 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009418/10.79, allocations: 1.805 MB / 3.963 GB, free: 22.48 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.01703/10.81, allocations: 5.393 MB / 3.968 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005463/10.81, allocations: 2.35 MB / 3.971 GB, free: 21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/10.81, allocations: 5.094 kB / 3.971 GB, free: 21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001965/10.81, allocations: 1.08 MB / 3.972 GB, free: 20.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004371/10.82, allocations: 0.5504 MB / 3.972 GB, free: 20.94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/10.83, allocations: 3.908 MB / 3.976 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002086/10.83, allocations: 1.667 MB / 3.978 GB, free: 19.22 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004464/10.84, allocations: 1.895 MB / 3.979 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/10.84, allocations: 0.9209 MB / 3.98 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of SimCode: time 1.874e-06/10.84, allocations: 2.812 kB / 3.98 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1601/11, allocations: 75.07 MB / 4.054 GB, free: 0 / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003362/11, allocations: 207.1 kB / 4.054 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.229/16.23, allocations: 3.656 kB / 4.054 GB, free: 15.73 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat