Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00145/0.00145, allocations: 183.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001305/0.001305, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2543/0.2543, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004407/0.0004407, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1578, allocations: 58.85 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.667/5.825, allocations: 2.773 GB / 3.252 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/5.826, allocations: 90.3 kB / 3.252 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.227/8.052, allocations: 0.6395 GB / 3.891 GB, free: 45.87 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.067e-06/8.052, allocations: 0 / 3.891 GB, free: 45.87 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003104/8.053, allocations: 39.52 kB / 3.891 GB, free: 45.86 MB / 0.5261 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.01648/8.069, allocations: 2.598 MB / 3.894 GB, free: 44.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/8.069, allocations: 6.656 kB / 3.894 GB, free: 44.62 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009283/8.07, allocations: 184.6 kB / 3.894 GB, free: 44.58 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009982/8.08, allocations: 0.9406 MB / 3.895 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/8.083, allocations: 1 MB / 3.896 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000247/8.084, allocations: 102.7 kB / 3.896 GB, free: 44.17 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/8.084, allocations: 115.4 kB / 3.896 GB, free: 44.17 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007224/8.091, allocations: 2.298 MB / 3.898 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-05/8.092, allocations: 12.8 kB / 3.898 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004284/8.092, allocations: 56.75 kB / 3.898 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.765e-05/8.092, allocations: 32.5 kB / 3.898 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006334/8.098, allocations: 2.188 MB / 3.9 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01472/8.113, allocations: 10.01 MB / 3.91 GB, free: 37.04 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005261/8.119, allocations: 1.736 MB / 3.912 GB, free: 37.01 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04961/8.168, allocations: 26 MB / 3.937 GB, free: 21.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/8.168, allocations: 42.25 kB / 3.937 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 2.726e-06/8.168, allocations: 0 / 3.937 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.009273/8.178, allocations: 2.931 MB / 3.94 GB, free: 20.85 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/8.178, allocations: 273 kB / 3.94 GB, free: 20.54 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/8.179, allocations: 0.9135 MB / 3.941 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/8.18, allocations: 44.89 kB / 3.941 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004551/8.18, allocations: 0.6139 MB / 3.942 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/8.18, allocations: 300.4 kB / 3.942 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.336e-05/8.18, allocations: 19.94 kB / 3.942 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.767e-05/8.18, allocations: 351.8 kB / 3.943 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/8.182, allocations: 0.496 MB / 3.943 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/8.183, allocations: 0.9175 MB / 3.944 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/8.184, allocations: 0.5729 MB / 3.945 GB, free: 18.15 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/8.184, allocations: 3.812 kB / 3.945 GB, free: 18.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00364/8.188, allocations: 1.548 MB / 3.946 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002019/8.19, allocations: 4.463 MB / 3.95 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.959e-05/8.19, allocations: 10.62 kB / 3.95 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.149e-05/8.19, allocations: 18.59 kB / 3.95 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/8.191, allocations: 360.4 kB / 3.951 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.104e-05/8.191, allocations: 20.97 kB / 3.951 GB, free: 28.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/8.193, allocations: 250.6 kB / 3.951 GB, free: 28.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/8.193, allocations: 67.39 kB / 3.951 GB, free: 28.69 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/8.193, allocations: 3.906 kB / 3.951 GB, free: 28.69 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003057/8.196, allocations: 1.386 MB / 3.953 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/8.196, allocations: 10.31 kB / 3.953 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/8.197, allocations: 21.09 kB / 3.953 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/8.198, allocations: 350.7 kB / 3.953 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/8.198, allocations: 25.53 kB / 3.953 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/8.199, allocations: 227.2 kB / 3.953 GB, free: 28.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/8.199, allocations: 66.52 kB / 3.953 GB, free: 28.07 MB / 0.5417 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 () * Number of clocked 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.001003/8.2, allocations: 395.8 kB / 3.954 GB, free: 27.76 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004602/8.201, allocations: 141.5 kB / 3.954 GB, free: 27.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008312/8.209, allocations: 6.797 MB / 3.96 GB, free: 24.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.34e-05/8.209, allocations: 85.92 kB / 3.96 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/8.209, allocations: 0 / 3.96 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/8.209, allocations: 3.703 kB / 3.96 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004635/8.214, allocations: 3.284 MB / 3.964 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/8.214, allocations: 0 / 3.964 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/8.215, allocations: 309.8 kB / 3.964 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/8.215, allocations: 10.5 kB / 3.964 GB, free: 22.97 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.341e-05/8.215, allocations: 26.62 kB / 3.964 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/8.215, allocations: 3.906 kB / 3.964 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/8.215, allocations: 0 / 3.964 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004809/8.22, allocations: 3.124 MB / 3.967 GB, free: 21.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/8.222, allocations: 0.9011 MB / 3.968 GB, free: 21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005435/8.222, allocations: 15.94 kB / 3.968 GB, free: 20.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/8.224, allocations: 152.6 kB / 3.968 GB, free: 20.95 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/8.224, allocations: 110.5 kB / 3.968 GB, free: 20.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/8.224, allocations: 46.64 kB / 3.968 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002768/8.227, allocations: 1.535 MB / 3.97 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.9e-07/8.227, allocations: 0 / 3.97 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009268/8.236, allocations: 1.822 MB / 3.971 GB, free: 20.02 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: 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 () * Number of clocked 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.01533/8.252, allocations: 5.546 MB / 3.977 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00619/8.258, allocations: 2.671 MB / 3.98 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/8.258, allocations: 4.062 kB / 3.98 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002554/8.26, allocations: 1.537 MB / 3.981 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/8.266, allocations: 0.7869 MB / 3.982 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3783/8.644, allocations: 20.47 MB / 4.002 GB, free: 54 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/8.645, allocations: 1.866 MB / 4.004 GB, free: 53.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003462/8.649, allocations: 2.111 MB / 4.006 GB, free: 53.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/8.65, allocations: 1.112 MB / 4.007 GB, free: 53.23 MB / 0.5417 GB Notification: Performance of SimCode: time 1.233e-06/8.65, allocations: 0 / 4.007 GB, free: 53.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1525/8.802, allocations: 88.73 MB / 4.093 GB, free: 49.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/8.803, allocations: 236.7 kB / 4.094 GB, free: 48.82 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.401/15.2, allocations: 0 / 4.094 GB, free: 48.82 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat