Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001003, allocations: 88.56 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2292/0.2292, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.202e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1602, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.116/8.276, allocations: 2.777 GB / 3.272 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/8.277, allocations: 80.64 kB / 3.272 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.43/10.71, allocations: 0.6384 GB / 3.91 GB, free: 49.73 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/10.71, allocations: 0 / 3.91 GB, free: 49.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001029/10.71, allocations: 43.19 kB / 3.91 GB, free: 49.72 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.009522/10.72, allocations: 2.452 MB / 3.913 GB, free: 48.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/10.72, allocations: 15.55 kB / 3.913 GB, free: 48.62 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008037/10.72, allocations: 0.9507 MB / 3.914 GB, free: 48.54 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002762/10.73, allocations: 1.002 MB / 3.915 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.798e-05/10.73, allocations: 49.75 kB / 3.915 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/10.73, allocations: 69.73 kB / 3.915 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002108/10.73, allocations: 1.223 MB / 3.916 GB, free: 48.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/10.73, allocations: 1.425 MB / 3.917 GB, free: 47.77 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/10.73, allocations: 8.688 kB / 3.917 GB, free: 47.77 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/10.73, allocations: 5.875 kB / 3.918 GB, free: 47.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/10.73, allocations: 30.84 kB / 3.918 GB, free: 47.77 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1339/10.87, allocations: 70.55 MB / 3.986 GB, free: 19.41 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/10.87, allocations: 0.8018 MB / 3.987 GB, free: 19.37 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/10.87, allocations: 397.7 kB / 3.988 GB, free: 19.36 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9832/11.85, allocations: 277.1 MB / 4.258 GB, free: 19.73 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.589e-05/11.85, allocations: 43.77 kB / 4.258 GB, free: 19.69 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/11.85, allocations: 0 / 4.258 GB, free: 19.69 MB / 0.6511 GB Notification: Performance of matching and sorting (n=39): time 0.005439/11.86, allocations: 1.494 MB / 4.26 GB, free: 18.89 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/11.86, allocations: 264.5 kB / 4.26 GB, free: 18.57 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/11.86, allocations: 0.9486 MB / 4.261 GB, free: 18 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001095/11.86, allocations: 25.7 kB / 4.261 GB, free: 17.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/11.86, allocations: 0.7759 MB / 4.262 GB, free: 17.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/11.86, allocations: 141.2 kB / 4.262 GB, free: 17.46 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/11.86, allocations: 0 / 4.262 GB, free: 17.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001627/11.86, allocations: 354.6 kB / 4.262 GB, free: 17.14 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005371/11.86, allocations: 327.1 kB / 4.262 GB, free: 16.97 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007363/11.86, allocations: 0.7177 MB / 4.263 GB, free: 16.28 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/11.86, allocations: 0.7454 MB / 4.264 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/11.86, allocations: 4 kB / 4.264 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00468/11.87, allocations: 1.443 MB / 4.265 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.002345/11.87, allocations: 4.45 MB / 4.27 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/11.87, allocations: 12 kB / 4.27 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.746e-05/11.87, allocations: 20 kB / 4.27 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/11.87, allocations: 356.3 kB / 4.27 GB, free: 10 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/11.87, allocations: 24.5 kB / 4.27 GB, free: 9.988 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002454/11.88, allocations: 346.2 kB / 4.27 GB, free: 9.742 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/11.88, allocations: 69.75 kB / 4.27 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/11.88, allocations: 9.078 kB / 4.27 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003304/11.88, allocations: 1.162 MB / 4.272 GB, free: 9.023 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/11.88, allocations: 12 kB / 4.272 GB, free: 9.012 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/11.88, allocations: 20 kB / 4.272 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/11.88, allocations: 351.2 kB / 4.272 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/11.88, allocations: 32.81 kB / 4.272 GB, free: 8.719 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/11.88, allocations: 230.6 kB / 4.272 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/11.88, allocations: 76.42 kB / 4.272 GB, free: 8.504 MB / 0.6511 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 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.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.0003454/11.88, allocations: 142.2 kB / 4.272 GB, free: 8.383 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002585/11.89, allocations: 0.6832 MB / 4.273 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003465/11.89, allocations: 115.5 kB / 4.273 GB, free: 7.816 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/11.89, allocations: 1.128 MB / 4.274 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/11.89, allocations: 8 kB / 4.274 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/11.89, allocations: 0.8125 kB / 4.274 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/11.89, allocations: 0 / 4.274 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003422/11.89, allocations: 2.026 MB / 4.276 GB, free: 6.094 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/11.89, allocations: 4 kB / 4.276 GB, free: 6.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/11.89, allocations: 100.7 kB / 4.276 GB, free: 6.016 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/11.89, allocations: 8.562 kB / 4.276 GB, free: 6.008 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/11.89, allocations: 9.312 kB / 4.276 GB, free: 6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/11.89, allocations: 9.016 kB / 4.276 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/11.89, allocations: 6.344 kB / 4.276 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/11.89, allocations: 0.9561 MB / 4.277 GB, free: 5.047 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008099/11.89, allocations: 452.1 kB / 4.278 GB, free: 4.777 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003981/11.89, allocations: 8 kB / 4.278 GB, free: 4.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/11.9, allocations: 98.48 kB / 4.278 GB, free: 4.699 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.319e-05/11.9, allocations: 36.36 kB / 4.278 GB, free: 4.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/11.9, allocations: 25.39 kB / 4.278 GB, free: 4.664 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001822/11.9, allocations: 1.159 MB / 4.279 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.31e-07/11.9, allocations: 0 / 4.279 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009248/11.91, allocations: 1.768 MB / 4.281 GB, free: 2.465 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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 Backend phase and start with SimCode phase: time 0.4252/12.33, allocations: 4.647 MB / 4.285 GB, free: 161.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003284/12.34, allocations: 1.218 MB / 4.287 GB, free: 161.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/12.34, allocations: 5.031 kB / 4.287 GB, free: 161.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003735/12.34, allocations: 156.3 kB / 4.287 GB, free: 161.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/12.34, allocations: 421.2 kB / 4.287 GB, free: 161.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009472/12.35, allocations: 2.18 MB / 4.289 GB, free: 161.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/12.35, allocations: 1.258 MB / 4.29 GB, free: 160.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.004834/12.35, allocations: 3.028 MB / 4.293 GB, free: 160.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000818/12.36, allocations: 0.563 MB / 4.294 GB, free: 160.5 MB / 0.6511 GB Notification: Performance of SimCode: time 9.81e-07/12.36, allocations: 0 / 4.294 GB, free: 160.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1281/12.48, allocations: 56.72 MB / 4.349 GB, free: 158 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/12.48, allocations: 200.5 kB / 4.35 GB, free: 157.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.147/16.63, allocations: 3.938 kB / 4.35 GB, free: 157.8 MB / 0.6511 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat