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.001714/0.001714, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 95.77 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2194/0.2194, allocations: 45.16 MB / 383.8 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.953e-05, allocations: 0 / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 63.26 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.961/8.076, allocations: 2.778 GB / 3.282 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/8.076, allocations: 79.89 kB / 3.282 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.469/10.54, allocations: 0.5025 GB / 3.785 GB, free: 54.79 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.595e-06/10.54, allocations: 0 / 3.785 GB, free: 54.79 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000156/10.54, allocations: 34.36 kB / 3.785 GB, free: 54.79 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.0121/10.56, allocations: 2.067 MB / 3.787 GB, free: 54 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/10.56, allocations: 11.09 kB / 3.787 GB, free: 54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006712/10.56, allocations: 0.7193 MB / 3.787 GB, free: 53.94 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/10.57, allocations: 0.8035 MB / 3.788 GB, free: 53.66 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/10.57, allocations: 43.22 kB / 3.788 GB, free: 53.66 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003345/10.57, allocations: 50.72 kB / 3.788 GB, free: 53.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002464/10.57, allocations: 0.9178 MB / 3.789 GB, free: 53.65 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/10.57, allocations: 1.088 MB / 3.79 GB, free: 53.33 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/10.57, allocations: 5.562 kB / 3.79 GB, free: 53.33 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001704/10.57, allocations: 15.72 kB / 3.79 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/10.57, allocations: 22.62 kB / 3.79 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/10.68, allocations: 57.25 MB / 3.846 GB, free: 32.24 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/10.68, allocations: 0.598 MB / 3.847 GB, free: 32.21 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/10.68, allocations: 301.2 kB / 3.847 GB, free: 32.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03454/10.71, allocations: 18.49 MB / 3.865 GB, free: 35.42 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.296e-05/10.71, allocations: 38.41 kB / 3.865 GB, free: 35.38 MB / 0.573 GB Notification: Performance of pre-optimization done (n=61): time 3.647e-06/10.71, allocations: 0 / 3.865 GB, free: 35.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=61): time 0.005745/10.72, allocations: 1.487 MB / 3.867 GB, free: 35.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/10.72, allocations: 220.5 kB / 3.867 GB, free: 35.05 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/10.72, allocations: 0.563 MB / 3.867 GB, free: 34.91 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/10.72, allocations: 28.33 kB / 3.867 GB, free: 34.88 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004043/10.72, allocations: 0.5045 MB / 3.868 GB, free: 34.61 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/10.72, allocations: 195.6 kB / 3.868 GB, free: 34.48 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/10.72, allocations: 3.969 kB / 3.868 GB, free: 34.48 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001979/10.72, allocations: 387.3 kB / 3.868 GB, free: 34.17 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004441/10.72, allocations: 251.2 kB / 3.869 GB, free: 34.17 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005529/10.72, allocations: 0.5443 MB / 3.869 GB, free: 33.81 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002412/10.73, allocations: 0.5637 MB / 3.87 GB, free: 33.79 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/10.73, allocations: 3.906 kB / 3.87 GB, free: 33.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00344/10.73, allocations: 1.112 MB / 3.871 GB, free: 33.68 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00154/10.73, allocations: 3.224 MB / 3.874 GB, free: 30.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/10.73, allocations: 11.03 kB / 3.874 GB, free: 30.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.658e-05/10.73, allocations: 12.56 kB / 3.874 GB, free: 30.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/10.73, allocations: 276.7 kB / 3.874 GB, free: 30.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/10.73, allocations: 18.67 kB / 3.874 GB, free: 30.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/10.73, allocations: 163.2 kB / 3.874 GB, free: 30.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/10.73, allocations: 51.11 kB / 3.875 GB, free: 30.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/10.73, allocations: 3.938 kB / 3.875 GB, free: 30.25 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002578/10.74, allocations: 0.8921 MB / 3.875 GB, free: 30.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/10.74, allocations: 6.688 kB / 3.875 GB, free: 30.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/10.74, allocations: 17.08 kB / 3.875 GB, free: 30.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009132/10.74, allocations: 271 kB / 3.876 GB, free: 30.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/10.74, allocations: 19.88 kB / 3.876 GB, free: 30.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/10.74, allocations: 138.5 kB / 3.876 GB, free: 30.17 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/10.74, allocations: 49.84 kB / 3.876 GB, free: 30.17 MB / 0.573 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.000356/10.74, allocations: 138.1 kB / 3.876 GB, free: 30.06 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00289/10.74, allocations: 0.8345 MB / 3.877 GB, free: 29.97 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003308/10.74, allocations: 89.44 kB / 3.877 GB, free: 29.93 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004609/10.75, allocations: 3.352 MB / 3.88 GB, free: 29.36 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.148e-05/10.75, allocations: 29.58 kB / 3.88 GB, free: 29.36 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/10.75, allocations: 0 / 3.88 GB, free: 29.36 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/10.75, allocations: 3.656 kB / 3.88 GB, free: 29.36 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/10.75, allocations: 1.823 MB / 3.882 GB, free: 29.03 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/10.75, allocations: 0 / 3.882 GB, free: 29.03 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/10.75, allocations: 230 kB / 3.882 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/10.75, allocations: 3.688 kB / 3.882 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/10.75, allocations: 9.062 kB / 3.882 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/10.75, allocations: 3.938 kB / 3.882 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/10.75, allocations: 0 / 3.882 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/10.75, allocations: 1.327 MB / 3.884 GB, free: 28.72 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/10.75, allocations: 0.7558 MB / 3.884 GB, free: 28.43 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/10.75, allocations: 0 / 3.884 GB, free: 28.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008107/10.75, allocations: 77.73 kB / 3.884 GB, free: 28.43 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/10.75, allocations: 93.28 kB / 3.884 GB, free: 28.43 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-05/10.75, allocations: 27.06 kB / 3.884 GB, free: 28.43 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001852/10.76, allocations: 1.349 MB / 3.886 GB, free: 28.29 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.71e-07/10.76, allocations: 4 kB / 3.886 GB, free: 28.28 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009265/10.77, allocations: 1.647 MB / 3.887 GB, free: 28.05 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.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 (73): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01172/10.78, allocations: 3.714 MB / 3.891 GB, free: 26.91 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002323/10.78, allocations: 1.219 MB / 3.892 GB, free: 26.89 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/10.78, allocations: 0 / 3.892 GB, free: 26.89 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005421/10.78, allocations: 499 kB / 3.893 GB, free: 26.89 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/10.78, allocations: 444 kB / 3.893 GB, free: 26.85 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008587/10.79, allocations: 2.842 MB / 3.896 GB, free: 25.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009586/10.79, allocations: 1.441 MB / 3.897 GB, free: 25.21 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002581/10.8, allocations: 1.67 MB / 3.899 GB, free: 25.16 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007923/10.8, allocations: 0.7082 MB / 3.9 GB, free: 25.16 MB / 0.573 GB Notification: Performance of SimCode: time 1.563e-06/10.8, allocations: 0 / 3.9 GB, free: 25.16 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/10.92, allocations: 60.51 MB / 3.959 GB, free: 7.035 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/10.92, allocations: 187.5 kB / 3.959 GB, free: 6.844 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.616/15.53, allocations: 0 / 3.959 GB, free: 6.844 MB / 0.573 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