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.001527/0.001527, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.878/1.878, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009481/0.0009478, allocations: 85.88 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4616/0.4616, allocations: 43.47 MB / 358.6 MB, free: 51.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.088e-05, allocations: 7.984 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1523, allocations: 58.83 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.646/6.798, allocations: 2.773 GB / 3.245 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/6.799, allocations: 84.73 kB / 3.246 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.37/9.168, allocations: 0.6371 GB / 3.883 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.316e-06/9.168, allocations: 2.156 kB / 3.883 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001937/9.169, allocations: 47.5 kB / 3.883 GB, free: 46.64 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.01072/9.179, allocations: 2.441 MB / 3.885 GB, free: 45.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/9.179, allocations: 9.906 kB / 3.885 GB, free: 45.32 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007159/9.18, allocations: 176.2 kB / 3.885 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008215/9.188, allocations: 0.9602 MB / 3.886 GB, free: 45.06 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003261/9.192, allocations: 0.9932 MB / 3.887 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/9.192, allocations: 102 kB / 3.887 GB, free: 44.45 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004972/9.192, allocations: 116.8 kB / 3.887 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006171/9.199, allocations: 2.266 MB / 3.89 GB, free: 43.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.502e-05/9.199, allocations: 15.45 kB / 3.89 GB, free: 43.38 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/9.199, allocations: 56.31 kB / 3.89 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.459e-05/9.199, allocations: 30.91 kB / 3.89 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/9.204, allocations: 1.979 MB / 3.892 GB, free: 42.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01317/9.217, allocations: 10.01 MB / 3.901 GB, free: 35.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004261/9.222, allocations: 1.575 MB / 3.903 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007164/9.222, allocations: 448 kB / 3.903 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05215/9.275, allocations: 26.07 MB / 3.929 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.659e-05/9.275, allocations: 46.03 kB / 3.929 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 4.559e-06/9.275, allocations: 3.703 kB / 3.929 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.007624/9.282, allocations: 2.355 MB / 3.931 GB, free: 16.98 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002187/9.283, allocations: 268.1 kB / 3.931 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/9.285, allocations: 0.9073 MB / 3.932 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002598/9.285, allocations: 46.11 kB / 3.932 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006454/9.286, allocations: 0.6132 MB / 3.933 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/9.286, allocations: 302.8 kB / 3.933 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.617e-05/9.286, allocations: 19.94 kB / 3.933 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001921/9.287, allocations: 354.3 kB / 3.934 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006694/9.287, allocations: 341.7 kB / 3.934 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008415/9.288, allocations: 0.7368 MB / 3.935 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007547/9.289, allocations: 425.5 kB / 3.935 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/9.289, allocations: 4 kB / 3.935 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002336/9.291, allocations: 1.217 MB / 3.936 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001931/9.293, allocations: 4.476 MB / 3.941 GB, free: 8.973 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/9.293, allocations: 10.91 kB / 3.941 GB, free: 8.973 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.209e-05/9.293, allocations: 17.84 kB / 3.941 GB, free: 8.973 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/9.294, allocations: 358 kB / 3.941 GB, free: 8.934 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.443e-05/9.295, allocations: 21.97 kB / 3.941 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/9.296, allocations: 254.2 kB / 3.941 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/9.297, allocations: 68.52 kB / 3.941 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/9.297, allocations: 3.219 kB / 3.941 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00192/9.298, allocations: 1.056 MB / 3.942 GB, free: 8.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/9.299, allocations: 13.56 kB / 3.942 GB, free: 8.391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/9.299, allocations: 16.41 kB / 3.942 GB, free: 8.391 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/9.3, allocations: 351.6 kB / 3.943 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.259e-05/9.3, allocations: 19.59 kB / 3.943 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/9.302, allocations: 227.6 kB / 3.943 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/9.302, allocations: 69.05 kB / 3.943 GB, free: 8.246 MB / 0.5261 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.0004139/9.302, allocations: 184.7 kB / 3.943 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004505/9.303, allocations: 141.1 kB / 3.943 GB, free: 8.008 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006708/9.309, allocations: 6.473 MB / 3.95 GB, free: 4.918 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.469e-05/9.309, allocations: 84.58 kB / 3.95 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/9.309, allocations: 0 / 3.95 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/9.309, allocations: 3.75 kB / 3.95 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003936/9.313, allocations: 3.292 MB / 3.953 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/9.313, allocations: 0 / 3.953 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/9.314, allocations: 315.4 kB / 3.953 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.518e-05/9.315, allocations: 3.875 kB / 3.953 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-05/9.315, allocations: 27 kB / 3.953 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/9.315, allocations: 7.094 kB / 3.953 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/9.315, allocations: 0 / 3.953 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003264/9.318, allocations: 2.784 MB / 3.956 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/9.319, allocations: 0.9062 MB / 3.957 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002428/9.32, allocations: 20 kB / 3.957 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/9.321, allocations: 141.1 kB / 3.957 GB, free: 0.7461 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/9.321, allocations: 113.4 kB / 3.957 GB, free: 0.6797 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-05/9.321, allocations: 42.98 kB / 3.957 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004202/9.325, allocations: 1.67 MB / 3.959 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.5e-07/9.325, allocations: 0 / 3.959 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008487/9.334, allocations: 1.826 MB / 3.961 GB, free: 13.81 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 () * 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.01356/9.347, allocations: 5.215 MB / 3.966 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004151/9.352, allocations: 2.218 MB / 3.968 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/9.352, allocations: 0 / 3.968 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001654/9.353, allocations: 1.376 MB / 3.969 GB, free: 5.902 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/9.358, allocations: 0.7875 MB / 3.97 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/9.369, allocations: 4.904 MB / 3.975 GB, free: 0.8906 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4159/9.785, allocations: 1.864 MB / 3.977 GB, free: 60.04 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00524/9.79, allocations: 2.165 MB / 3.979 GB, free: 60.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00153/9.792, allocations: 1.092 MB / 3.98 GB, free: 60.02 MB / 0.5417 GB Notification: Performance of SimCode: time 1.794e-06/9.792, allocations: 1.312 kB / 3.98 GB, free: 60.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1916/9.984, allocations: 95.27 MB / 4.073 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/9.984, allocations: 208.8 kB / 4.073 GB, free: 55.39 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.373/16.36, allocations: 4 kB / 4.073 GB, free: 55.38 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