Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 196.4 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009413/0.000941, allocations: 87.12 kB / 292.1 MB, free: 6.035 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1909/0.1909, allocations: 45.14 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.551e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 63.25 MB / 0.5115 GB, free: 6.676 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.986/6.102, allocations: 2.778 GB / 3.29 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/6.103, allocations: 83.33 kB / 3.29 GB, free: 7.371 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.77/7.872, allocations: 0.5074 GB / 3.797 GB, free: 58.03 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.593e-06/7.872, allocations: 0 / 3.797 GB, free: 58.03 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.711e-05/7.872, allocations: 28.17 kB / 3.797 GB, free: 58.03 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006399/7.879, allocations: 2.065 MB / 3.799 GB, free: 57.12 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/7.879, allocations: 9.094 kB / 3.799 GB, free: 57.12 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000283/7.879, allocations: 140.3 kB / 3.799 GB, free: 57.08 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005313/7.884, allocations: 0.7242 MB / 3.8 GB, free: 57.02 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001483/7.886, allocations: 0.801 MB / 3.801 GB, free: 56.73 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.97e-05/7.886, allocations: 76.84 kB / 3.801 GB, free: 56.72 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/7.886, allocations: 91.52 kB / 3.801 GB, free: 56.72 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003458/7.89, allocations: 1.714 MB / 3.803 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/7.89, allocations: 6.531 kB / 3.803 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/7.89, allocations: 52.42 kB / 3.803 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/7.89, allocations: 24.41 kB / 3.803 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/7.893, allocations: 1.492 MB / 3.804 GB, free: 56.38 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007598/7.901, allocations: 7.555 MB / 3.812 GB, free: 51.39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002704/7.903, allocations: 1.177 MB / 3.813 GB, free: 51.36 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/7.904, allocations: 338.7 kB / 3.813 GB, free: 51.35 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04081/7.945, allocations: 26.81 MB / 3.839 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/7.945, allocations: 40.22 kB / 3.839 GB, free: 33.85 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 2.394e-06/7.945, allocations: 0 / 3.839 GB, free: 33.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.005441/7.95, allocations: 1.783 MB / 3.841 GB, free: 33.76 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/7.95, allocations: 216.8 kB / 3.841 GB, free: 33.51 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009794/7.951, allocations: 0.716 MB / 3.842 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/7.951, allocations: 39.89 kB / 3.842 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002686/7.952, allocations: 486.3 kB / 3.842 GB, free: 33.11 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000184/7.952, allocations: 230.1 kB / 3.843 GB, free: 32.97 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/7.952, allocations: 13.75 kB / 3.843 GB, free: 32.97 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.03e-05/7.952, allocations: 341.6 kB / 3.843 GB, free: 32.67 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004169/7.952, allocations: 268.7 kB / 3.843 GB, free: 32.66 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/7.953, allocations: 0.561 MB / 3.844 GB, free: 32.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004887/7.953, allocations: 329.7 kB / 3.844 GB, free: 32.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/7.953, allocations: 0 / 3.844 GB, free: 32.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001394/7.955, allocations: 0.9371 MB / 3.845 GB, free: 32.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005394/7.955, allocations: 3.224 MB / 3.848 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/7.955, allocations: 17.38 kB / 3.848 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/7.955, allocations: 11.19 kB / 3.848 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009113/7.956, allocations: 275.9 kB / 3.848 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/7.956, allocations: 18.78 kB / 3.848 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/7.957, allocations: 194 kB / 3.849 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.501e-05/7.957, allocations: 55.58 kB / 3.849 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/7.957, allocations: 3.688 kB / 3.849 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001136/7.959, allocations: 0.8013 MB / 3.849 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/7.959, allocations: 10.41 kB / 3.849 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/7.959, allocations: 11.69 kB / 3.85 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008385/7.959, allocations: 274.5 kB / 3.85 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/7.959, allocations: 19.75 kB / 3.85 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009215/7.96, allocations: 174.8 kB / 3.85 GB, free: 28.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.832e-05/7.961, allocations: 57.61 kB / 3.85 GB, free: 28.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001844/7.961, allocations: 166.5 kB / 3.85 GB, free: 28.59 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/7.961, allocations: 106.2 kB / 3.85 GB, free: 28.53 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003949/7.965, allocations: 4.868 MB / 3.855 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.102e-05/7.965, allocations: 64.12 kB / 3.855 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/7.965, allocations: 3.141 kB / 3.855 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/7.965, allocations: 3.375 kB / 3.855 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/7.967, allocations: 2.505 MB / 3.858 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/7.967, allocations: 0 / 3.858 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/7.968, allocations: 231.1 kB / 3.858 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/7.968, allocations: 10.2 kB / 3.858 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/7.968, allocations: 17.19 kB / 3.858 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/7.968, allocations: 7.344 kB / 3.858 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/7.968, allocations: 1.125 kB / 3.858 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/7.97, allocations: 2.127 MB / 3.86 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007103/7.971, allocations: 0.7016 MB / 3.861 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/7.971, allocations: 23.61 kB / 3.861 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008778/7.972, allocations: 110.4 kB / 3.861 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/7.972, allocations: 84.91 kB / 3.861 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-05/7.972, allocations: 37.78 kB / 3.861 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001219/7.973, allocations: 1.162 MB / 3.862 GB, free: 26.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.71e-07/7.973, allocations: 0 / 3.862 GB, free: 26.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005336/7.978, allocations: 1.643 MB / 3.864 GB, free: 26.31 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00926/7.988, allocations: 4.363 MB / 3.868 GB, free: 24.75 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002033/7.99, allocations: 1.687 MB / 3.869 GB, free: 24.12 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/7.99, allocations: 2.969 kB / 3.869 GB, free: 24.12 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008081/7.991, allocations: 1.03 MB / 3.87 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/7.993, allocations: 0.6031 MB / 3.871 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006556/8, allocations: 3.782 MB / 3.875 GB, free: 21.85 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/8.001, allocations: 1.573 MB / 3.876 GB, free: 21.08 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002105/8.003, allocations: 1.628 MB / 3.878 GB, free: 21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006958/8.004, allocations: 0.8008 MB / 3.879 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of SimCode: time 7.91e-07/8.004, allocations: 0 / 3.879 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3892/8.393, allocations: 78.07 MB / 3.955 GB, free: 71.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/8.393, allocations: 207.5 kB / 3.955 GB, free: 71.74 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.082/12.47, allocations: 0 / 3.955 GB, free: 71.74 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat