Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.2 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.41/1.41, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009997/0.0009999, allocations: 88.17 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.198e-05/3.2e-05, allocations: 7.984 kB / 460.5 MB, free: 69.94 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 63.25 MB / 0.5115 GB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.128/5.244, allocations: 2.779 GB / 3.29 GB, free: 8.309 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/5.244, allocations: 85.25 kB / 3.29 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.962/7.206, allocations: 0.6443 GB / 3.935 GB, free: 10.57 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.192e-06/7.206, allocations: 0 / 3.935 GB, free: 10.57 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.409e-05/7.206, allocations: 42.97 kB / 3.935 GB, free: 10.53 MB / 0.5573 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.00841/7.215, allocations: 2.454 MB / 3.937 GB, free: 8.051 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/7.215, allocations: 12.02 kB / 3.937 GB, free: 8.039 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004065/7.215, allocations: 177.5 kB / 3.937 GB, free: 7.855 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007368/7.222, allocations: 0.9566 MB / 3.938 GB, free: 6.91 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/7.225, allocations: 0.9847 MB / 3.939 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/7.225, allocations: 106.4 kB / 3.939 GB, free: 5.805 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/7.225, allocations: 119.9 kB / 3.939 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00516/7.23, allocations: 2.267 MB / 3.942 GB, free: 3.273 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/7.23, allocations: 7.938 kB / 3.942 GB, free: 3.266 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/7.231, allocations: 56 kB / 3.942 GB, free: 3.211 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.64e-05/7.231, allocations: 32 kB / 3.942 GB, free: 3.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004496/7.235, allocations: 1.985 MB / 3.944 GB, free: 1.191 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3126/7.548, allocations: 10.01 MB / 3.953 GB, free: 42.52 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003781/7.552, allocations: 1.583 MB / 3.955 GB, free: 42.48 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006729/7.552, allocations: 443.7 kB / 3.955 GB, free: 42.47 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04887/7.601, allocations: 28.63 MB / 3.983 GB, free: 24.62 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/7.601, allocations: 48.28 kB / 3.983 GB, free: 24.58 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 2.415e-06/7.601, allocations: 0 / 3.983 GB, free: 24.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.007149/7.608, allocations: 2.358 MB / 3.986 GB, free: 24.46 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008762/7.609, allocations: 268.1 kB / 3.986 GB, free: 40.14 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/7.611, allocations: 0.9103 MB / 3.987 GB, free: 39.99 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000122/7.611, allocations: 43.55 kB / 3.987 GB, free: 39.96 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004404/7.612, allocations: 0.6091 MB / 3.988 GB, free: 39.75 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/7.612, allocations: 299.9 kB / 3.988 GB, free: 39.6 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/7.612, allocations: 21.88 kB / 3.988 GB, free: 39.6 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001826/7.612, allocations: 354.8 kB / 3.988 GB, free: 39.29 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000748/7.613, allocations: 342 kB / 3.989 GB, free: 39.29 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008633/7.614, allocations: 0.7473 MB / 3.989 GB, free: 38.82 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/7.614, allocations: 424.6 kB / 3.99 GB, free: 38.82 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/7.614, allocations: 3.594 kB / 3.99 GB, free: 38.82 MB / 0.573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001971/7.616, allocations: 1.212 MB / 3.991 GB, free: 38.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002138/7.619, allocations: 4.468 MB / 3.995 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.283e-05/7.619, allocations: 9.969 kB / 3.995 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.682e-05/7.619, allocations: 21.09 kB / 3.995 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/7.62, allocations: 358.2 kB / 3.996 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.434e-05/7.62, allocations: 23.89 kB / 3.996 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/7.622, allocations: 250.6 kB / 3.996 GB, free: 34.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/7.622, allocations: 69.56 kB / 3.996 GB, free: 34.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/7.622, allocations: 3 kB / 3.996 GB, free: 34.04 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001584/7.623, allocations: 1.057 MB / 3.997 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/7.623, allocations: 11.92 kB / 3.997 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/7.624, allocations: 23.39 kB / 3.997 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/7.625, allocations: 352.6 kB / 3.997 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/7.625, allocations: 26.42 kB / 3.997 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/7.626, allocations: 224.5 kB / 3.998 GB, free: 33.97 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/7.626, allocations: 68.16 kB / 3.998 GB, free: 33.97 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0003313/7.627, allocations: 186.1 kB / 3.998 GB, free: 33.87 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/7.627, allocations: 137.3 kB / 3.998 GB, free: 33.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005625/7.633, allocations: 6.471 MB / 4.004 GB, free: 33.07 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.184e-05/7.633, allocations: 92.31 kB / 4.004 GB, free: 33.07 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/7.633, allocations: 4.219 kB / 4.004 GB, free: 33.07 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/7.633, allocations: 3.703 kB / 4.004 GB, free: 33.07 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003753/7.636, allocations: 3.286 MB / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/7.637, allocations: 0 / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/7.638, allocations: 313.2 kB / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.735e-05/7.638, allocations: 3.906 kB / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/7.638, allocations: 26.78 kB / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/7.638, allocations: 7.219 kB / 4.008 GB, free: 32.6 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/7.638, allocations: 3.953 kB / 4.008 GB, free: 32.59 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/7.64, allocations: 2.792 MB / 4.011 GB, free: 32.12 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/7.642, allocations: 0.8945 MB / 4.011 GB, free: 31.74 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/7.642, allocations: 17.69 kB / 4.011 GB, free: 31.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/7.643, allocations: 154.5 kB / 4.012 GB, free: 31.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/7.644, allocations: 114.7 kB / 4.012 GB, free: 31.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.388e-05/7.644, allocations: 40.86 kB / 4.012 GB, free: 31.72 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001667/7.645, allocations: 1.505 MB / 4.013 GB, free: 31.56 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.9e-07/7.645, allocations: 3.219 kB / 4.013 GB, free: 31.56 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006446/7.652, allocations: 1.832 MB / 4.015 GB, free: 31.48 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 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse51.phase,$cse51.region,$cse55.phase,$cse55.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * 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.0103/7.662, allocations: 5.221 MB / 4.02 GB, free: 30.38 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003165/7.665, allocations: 2.223 MB / 4.022 GB, free: 30.33 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/7.665, allocations: 2.078 kB / 4.022 GB, free: 30.33 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001136/7.667, allocations: 1.373 MB / 4.024 GB, free: 30.32 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/7.671, allocations: 0.7943 MB / 4.024 GB, free: 30.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009826/7.68, allocations: 4.91 MB / 4.029 GB, free: 29.21 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/7.682, allocations: 1.867 MB / 4.031 GB, free: 28.43 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003107/7.685, allocations: 2.177 MB / 4.033 GB, free: 28.36 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009904/7.686, allocations: 1.091 MB / 4.034 GB, free: 28.35 MB / 0.573 GB Notification: Performance of SimCode: time 7.01e-07/7.686, allocations: 3.938 kB / 4.034 GB, free: 28.35 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1304/7.816, allocations: 95.37 MB / 4.127 GB, free: 10.58 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/7.816, allocations: 207.3 kB / 4.128 GB, free: 10.36 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.642/13.46, allocations: 0 / 4.128 GB, free: 10.36 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat