Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001045, allocations: 82.97 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2102/0.2102, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.44e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1293, allocations: 63.24 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.265/5.394, allocations: 2.778 GB / 3.29 GB, free: 79.79 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/5.394, allocations: 83.95 kB / 3.29 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.939/7.334, allocations: 0.644 GB / 3.934 GB, free: 41.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.333e-06/7.334, allocations: 0 / 3.934 GB, free: 41.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001298/7.334, allocations: 38.61 kB / 3.934 GB, free: 41.4 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.00793/7.342, allocations: 2.444 MB / 3.936 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/7.342, allocations: 9.656 kB / 3.936 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003868/7.342, allocations: 180.3 kB / 3.937 GB, free: 39.95 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00704/7.349, allocations: 0.9529 MB / 3.937 GB, free: 39.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/7.351, allocations: 0.9947 MB / 3.938 GB, free: 39.24 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/7.351, allocations: 108.1 kB / 3.939 GB, free: 39.19 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/7.352, allocations: 118.5 kB / 3.939 GB, free: 39.14 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/7.356, allocations: 2.271 MB / 3.941 GB, free: 38.12 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/7.356, allocations: 7.5 kB / 3.941 GB, free: 38.12 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/7.357, allocations: 55.31 kB / 3.941 GB, free: 38.08 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.741e-05/7.357, allocations: 29.53 kB / 3.941 GB, free: 38.08 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00419/7.361, allocations: 1.984 MB / 3.943 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/7.372, allocations: 10.33 MB / 3.953 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/7.375, allocations: 1.563 MB / 3.954 GB, free: 28.95 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/7.376, allocations: 420.2 kB / 3.955 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03954/7.416, allocations: 26.57 MB / 3.981 GB, free: 0.543 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/7.416, allocations: 47.34 kB / 3.981 GB, free: 500 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=80): time 2.845e-06/7.416, allocations: 0 / 3.981 GB, free: 500 kB / 0.5417 GB Notification: Performance of matching and sorting (n=80): time 0.00685/7.423, allocations: 2.309 MB / 3.983 GB, free: 14.17 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/7.423, allocations: 273.8 kB / 3.983 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/7.424, allocations: 0.9846 MB / 3.984 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.159e-05/7.424, allocations: 41.7 kB / 3.984 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004243/7.425, allocations: 0.6219 MB / 3.985 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/7.425, allocations: 272 kB / 3.985 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-05/7.425, allocations: 28 kB / 3.985 GB, free: 11.89 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001234/7.425, allocations: 341.9 kB / 3.986 GB, free: 11.55 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005592/7.426, allocations: 346.5 kB / 3.986 GB, free: 11.21 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008484/7.426, allocations: 0.7757 MB / 3.987 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/7.427, allocations: 438.9 kB / 3.987 GB, free: 9.812 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/7.427, allocations: 4 kB / 3.987 GB, free: 9.809 MB / 0.5573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001926/7.429, allocations: 1.246 MB / 3.988 GB, free: 8.559 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001797/7.431, allocations: 4.901 MB / 3.993 GB, free: 3.312 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/7.431, allocations: 15.98 kB / 3.993 GB, free: 3.297 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.321e-05/7.431, allocations: 23.95 kB / 3.993 GB, free: 3.273 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/7.432, allocations: 351.5 kB / 3.993 GB, free: 2.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.834e-05/7.432, allocations: 31.86 kB / 3.994 GB, free: 2.898 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/7.434, allocations: 270.2 kB / 3.994 GB, free: 2.633 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/7.434, allocations: 67.97 kB / 3.994 GB, free: 2.566 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/7.434, allocations: 4 kB / 3.994 GB, free: 2.562 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001755/7.436, allocations: 1.07 MB / 3.995 GB, free: 1.492 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/7.436, allocations: 15.94 kB / 3.995 GB, free: 1.477 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/7.436, allocations: 24.03 kB / 3.995 GB, free: 1.453 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/7.437, allocations: 363.5 kB / 3.995 GB, free: 1.098 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.059e-05/7.437, allocations: 23.94 kB / 3.995 GB, free: 1.074 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/7.438, allocations: 234.5 kB / 3.996 GB, free: 0.8438 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/7.438, allocations: 67.98 kB / 3.996 GB, free: 0.7773 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.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 (143): * Single equations (assignments): 143 * 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.0002889/7.439, allocations: 192.5 kB / 3.996 GB, free: 0.582 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/7.439, allocations: 146.3 kB / 3.996 GB, free: 448 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006402/7.445, allocations: 6.399 MB / 4.002 GB, free: 10 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.458e-05/7.445, allocations: 87.52 kB / 4.002 GB, free: 9.918 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/7.445, allocations: 3.984 kB / 4.002 GB, free: 9.914 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/7.445, allocations: 3.984 kB / 4.002 GB, free: 9.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/7.449, allocations: 3.263 MB / 4.005 GB, free: 6.617 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/7.449, allocations: 0 / 4.005 GB, free: 6.617 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009955/7.45, allocations: 275.7 kB / 4.006 GB, free: 6.348 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/7.45, allocations: 4 kB / 4.006 GB, free: 6.344 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/7.45, allocations: 24 kB / 4.006 GB, free: 6.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/7.45, allocations: 4 kB / 4.006 GB, free: 6.316 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/7.45, allocations: 0 / 4.006 GB, free: 6.316 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003344/7.454, allocations: 2.744 MB / 4.008 GB, free: 3.543 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/7.455, allocations: 0.9006 MB / 4.009 GB, free: 2.617 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/7.455, allocations: 27.94 kB / 4.009 GB, free: 2.59 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/7.456, allocations: 123.8 kB / 4.009 GB, free: 2.469 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/7.457, allocations: 104.8 kB / 4.01 GB, free: 2.367 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/7.457, allocations: 39.98 kB / 4.01 GB, free: 2.328 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002045/7.459, allocations: 1.562 MB / 4.011 GB, free: 0.7539 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.81e-07/7.459, allocations: 0 / 4.011 GB, free: 0.7539 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.3155/7.774, allocations: 1.843 MB / 4.013 GB, free: 77.92 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: 56 ($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,$cse44.phase,$cse44.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse54.phase,$cse54.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.01045/7.785, allocations: 5.157 MB / 4.018 GB, free: 76.97 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003613/7.788, allocations: 2.213 MB / 4.02 GB, free: 76.93 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/7.788, allocations: 1.719 kB / 4.02 GB, free: 76.93 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001294/7.79, allocations: 1.35 MB / 4.021 GB, free: 76.92 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004145/7.794, allocations: 0.802 MB / 4.022 GB, free: 76.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009297/7.803, allocations: 4.861 MB / 4.027 GB, free: 75.91 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/7.804, allocations: 1.862 MB / 4.029 GB, free: 75.17 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003587/7.808, allocations: 2.176 MB / 4.031 GB, free: 75.15 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/7.809, allocations: 1.089 MB / 4.032 GB, free: 75.14 MB / 0.573 GB Notification: Performance of SimCode: time 2.014e-06/7.809, allocations: 0 / 4.032 GB, free: 75.14 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1272/7.936, allocations: 95.59 MB / 4.125 GB, free: 71.1 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/7.937, allocations: 211.9 kB / 4.126 GB, free: 70.87 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.222/13.16, allocations: 0 / 4.126 GB, free: 70.87 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat