Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001767/0.001767, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.771/1.771, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 92.44 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 45.15 MB / 383.8 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.847e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1284, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.37/7.498, allocations: 2.778 GB / 3.282 GB, free: 63.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/7.499, allocations: 83.58 kB / 3.282 GB, free: 63.23 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.774/10.27, allocations: 0.5787 GB / 3.861 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.004e-06/10.27, allocations: 0 / 3.861 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002274/10.27, allocations: 34.98 kB / 3.861 GB, free: 51.02 MB / 0.5417 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.01393/10.29, allocations: 2.558 MB / 3.864 GB, free: 49.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.839e-05/10.29, allocations: 11.62 kB / 3.864 GB, free: 49.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007706/10.3, allocations: 0.8657 MB / 3.864 GB, free: 49.83 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/10.3, allocations: 1.031 MB / 3.865 GB, free: 49.51 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/10.3, allocations: 48.25 kB / 3.865 GB, free: 49.51 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005966/10.3, allocations: 72.61 kB / 3.866 GB, free: 49.51 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00353/10.3, allocations: 1.373 MB / 3.867 GB, free: 49.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003543/10.31, allocations: 1.377 MB / 3.868 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/10.31, allocations: 1.5 kB / 3.868 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/10.31, allocations: 6.781 kB / 3.868 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/10.31, allocations: 29.09 kB / 3.868 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09434/10.4, allocations: 50.06 MB / 3.917 GB, free: 32.73 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003193/10.4, allocations: 1.166 MB / 3.918 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/10.41, allocations: 0.4992 MB / 3.919 GB, free: 32.67 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03782/10.44, allocations: 18.27 MB / 3.937 GB, free: 20.15 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.68e-05/10.44, allocations: 46.97 kB / 3.937 GB, free: 20.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001639/10.45, allocations: 116.1 kB / 3.937 GB, free: 20.06 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=103): time 1.506e-05/10.45, allocations: 3.938 kB / 3.937 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of matching and sorting (n=103): time 0.01026/10.46, allocations: 2.389 MB / 3.939 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/10.46, allocations: 193 kB / 3.939 GB, free: 19.69 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/10.46, allocations: 0.7154 MB / 3.94 GB, free: 19.52 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003231/10.46, allocations: 25.7 kB / 3.94 GB, free: 19.49 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006701/10.46, allocations: 0.595 MB / 3.941 GB, free: 19.21 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005078/10.46, allocations: 337.5 kB / 3.941 GB, free: 18.99 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/10.46, allocations: 0 / 3.941 GB, free: 18.99 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.00022/10.46, allocations: 358 kB / 3.941 GB, free: 18.68 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/10.46, allocations: 439.5 kB / 3.942 GB, free: 18.68 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/10.46, allocations: 0.7424 MB / 3.942 GB, free: 18.34 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00471/10.47, allocations: 0.9854 MB / 3.943 GB, free: 18.29 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/10.47, allocations: 3.594 kB / 3.943 GB, free: 18.29 MB / 0.5573 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007004/10.47, allocations: 1.94 MB / 3.945 GB, free: 17.03 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001641/10.48, allocations: 3.139 MB / 3.948 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/10.48, allocations: 8 kB / 3.948 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003607/10.48, allocations: 0.6941 MB / 3.949 GB, free: 13.15 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/10.48, allocations: 411.7 kB / 3.949 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/10.48, allocations: 1.092 MB / 3.95 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002723/10.49, allocations: 164.6 kB / 3.951 GB, free: 27.67 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004297/10.49, allocations: 80.88 kB / 3.951 GB, free: 27.61 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/10.49, allocations: 4 kB / 3.951 GB, free: 27.61 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006096/10.49, allocations: 1.51 MB / 3.952 GB, free: 26.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.744e-05/10.49, allocations: 15.94 kB / 3.952 GB, free: 26.29 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/10.49, allocations: 79.67 kB / 3.952 GB, free: 26.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00201/10.5, allocations: 453.5 kB / 3.953 GB, free: 25.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/10.5, allocations: 1.714 MB / 3.954 GB, free: 24.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/10.5, allocations: 143.3 kB / 3.955 GB, free: 24.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004497/10.5, allocations: 81.78 kB / 3.955 GB, free: 23.95 MB / 0.573 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.001011/10.5, allocations: 137.6 kB / 3.955 GB, free: 23.81 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006954/10.51, allocations: 1.615 MB / 3.956 GB, free: 22.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004765/10.51, allocations: 130.4 kB / 3.956 GB, free: 22.33 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008019/10.52, allocations: 5.347 MB / 3.962 GB, free: 17.68 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.692e-05/10.52, allocations: 65.41 kB / 3.962 GB, free: 17.64 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/10.52, allocations: 0 / 3.962 GB, free: 17.64 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-05/10.52, allocations: 10.92 kB / 3.962 GB, free: 17.64 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/10.53, allocations: 6.613 MB / 3.968 GB, free: 12.05 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/10.53, allocations: 4 kB / 3.968 GB, free: 12.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/10.53, allocations: 287.9 kB / 3.968 GB, free: 11.82 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003822/10.54, allocations: 1.879 MB / 3.97 GB, free: 10.23 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/10.54, allocations: 19.52 kB / 3.97 GB, free: 10.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002785/10.54, allocations: 1.857 MB / 3.972 GB, free: 8.473 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/10.54, allocations: 6.875 kB / 3.972 GB, free: 8.469 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006538/10.55, allocations: 2.998 MB / 3.975 GB, free: 5.734 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/10.55, allocations: 0.7789 MB / 3.976 GB, free: 5.09 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007583/10.55, allocations: 0 / 3.976 GB, free: 5.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/10.55, allocations: 110.1 kB / 3.976 GB, free: 5.008 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003665/10.55, allocations: 134.9 kB / 3.976 GB, free: 4.922 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/10.55, allocations: 47.41 kB / 3.976 GB, free: 4.883 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002894/10.55, allocations: 1.245 MB / 3.977 GB, free: 3.727 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.91e-07/10.55, allocations: 0 / 3.977 GB, free: 3.727 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01141/10.57, allocations: 1.814 MB / 3.979 GB, free: 1.941 MB / 0.573 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.5274/11.09, allocations: 5.439 MB / 3.984 GB, free: 81.92 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004389/11.1, allocations: 2.354 MB / 3.987 GB, free: 81.79 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/11.1, allocations: 2.062 kB / 3.987 GB, free: 81.79 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001395/11.1, allocations: 1.079 MB / 3.988 GB, free: 81.77 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/11.1, allocations: 0.5536 MB / 3.988 GB, free: 81.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/11.11, allocations: 3.904 MB / 3.992 GB, free: 80.88 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/11.11, allocations: 1.666 MB / 3.994 GB, free: 80.14 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004905/11.12, allocations: 1.902 MB / 3.996 GB, free: 80.12 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001523/11.12, allocations: 0.9235 MB / 3.997 GB, free: 80.11 MB / 0.573 GB Notification: Performance of SimCode: time 2.906e-06/11.12, allocations: 1.531 kB / 3.997 GB, free: 80.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1546/11.27, allocations: 74.74 MB / 4.069 GB, free: 77 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002587/11.28, allocations: 194.8 kB / 4.07 GB, free: 76.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.174/16.45, allocations: 0 / 4.07 GB, free: 76.75 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat