Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.001413/0.001414, allocations: 170.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.513/1.513, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.001167/0.001167, allocations: 88.47 kB / 281.6 MB, free: 5.316 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.2256/0.2256, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.707e-05/2.711e-05, allocations: 4 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.15, allocations: 61.91 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.009/8.159, allocations: 2.777 GB / 3.271 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003611/8.159, allocations: 82.22 kB / 3.271 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.546/10.71, allocations: 0.6381 GB / 3.91 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.433e-06/10.71, allocations: 1.5 kB / 3.91 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000104/10.71, allocations: 40.47 kB / 3.91 GB, free: 51.11 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.009449/10.72, allocations: 2.439 MB / 3.912 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/10.72, allocations: 14.11 kB / 3.912 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007815/10.72, allocations: 0.958 MB / 3.913 GB, free: 50.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/10.73, allocations: 1.001 MB / 3.914 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.718e-05/10.73, allocations: 54.81 kB / 3.914 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/10.73, allocations: 66.06 kB / 3.914 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001899/10.73, allocations: 1.213 MB / 3.915 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/10.73, allocations: 1.428 MB / 3.917 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/10.73, allocations: 5.797 kB / 3.917 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/10.73, allocations: 8.656 kB / 3.917 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/10.73, allocations: 32 kB / 3.917 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1303/10.86, allocations: 70.88 MB / 3.986 GB, free: 20.96 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/10.86, allocations: 0.774 MB / 3.987 GB, free: 20.93 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005817/10.86, allocations: 373.2 kB / 3.987 GB, free: 20.91 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03381/10.9, allocations: 16.41 MB / 4.003 GB, free: 26.3 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.594e-05/10.9, allocations: 43.66 kB / 4.003 GB, free: 26.27 MB / 0.573 GB Notification: Performance of pre-optimization done (n=72): time 4.288e-06/10.9, allocations: 3.781 kB / 4.003 GB, free: 26.27 MB / 0.573 GB Notification: Performance of matching and sorting (n=72): time 0.007366/10.9, allocations: 1.9 MB / 4.005 GB, free: 26.15 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/10.9, allocations: 271.9 kB / 4.005 GB, free: 25.84 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/10.91, allocations: 0.725 MB / 4.006 GB, free: 25.67 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002351/10.91, allocations: 25.7 kB / 4.006 GB, free: 25.64 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000629/10.91, allocations: 0.6815 MB / 4.007 GB, free: 25.29 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/10.91, allocations: 228.4 kB / 4.007 GB, free: 25.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.54e-05/10.91, allocations: 0 / 4.007 GB, free: 25.14 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001929/10.91, allocations: 350.2 kB / 4.007 GB, free: 24.84 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/10.91, allocations: 329.1 kB / 4.007 GB, free: 24.83 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009898/10.91, allocations: 0.746 MB / 4.008 GB, free: 24.31 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/10.91, allocations: 0.7463 MB / 4.009 GB, free: 24.29 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.897e-05/10.91, allocations: 3.469 kB / 4.009 GB, free: 24.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.004929/10.92, allocations: 1.454 MB / 4.01 GB, free: 24.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002166/10.92, allocations: 4.896 MB / 4.015 GB, free: 19.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.176e-05/10.92, allocations: 13.31 kB / 4.015 GB, free: 19.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.567e-05/10.92, allocations: 23.83 kB / 4.015 GB, free: 19.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/10.92, allocations: 355.7 kB / 4.015 GB, free: 19.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.29e-05/10.92, allocations: 28 kB / 4.016 GB, free: 19.05 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/10.92, allocations: 233.2 kB / 4.016 GB, free: 18.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/10.92, allocations: 74.81 kB / 4.016 GB, free: 18.97 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/10.92, allocations: 6.688 kB / 4.016 GB, free: 18.97 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003619/10.93, allocations: 1.171 MB / 4.017 GB, free: 18.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/10.93, allocations: 14.5 kB / 4.017 GB, free: 18.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/10.93, allocations: 23.12 kB / 4.017 GB, free: 18.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/10.93, allocations: 357.6 kB / 4.017 GB, free: 18.94 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.769e-05/10.93, allocations: 26.45 kB / 4.017 GB, free: 18.94 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/10.93, allocations: 169.9 kB / 4.018 GB, free: 18.89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/10.93, allocations: 71.12 kB / 4.018 GB, free: 18.89 MB / 0.573 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.0005062/10.93, allocations: 148.2 kB / 4.018 GB, free: 18.78 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003766/10.93, allocations: 1.034 MB / 4.019 GB, free: 18.66 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/10.93, allocations: 112.9 kB / 4.019 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005846/10.94, allocations: 4.388 MB / 4.023 GB, free: 17.86 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-05/10.94, allocations: 31.06 kB / 4.023 GB, free: 17.86 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/10.94, allocations: 4.406 kB / 4.023 GB, free: 17.86 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/10.94, allocations: 3.562 kB / 4.023 GB, free: 17.86 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/10.94, allocations: 2.359 MB / 4.025 GB, free: 17.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/10.94, allocations: 0 / 4.025 GB, free: 17.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000926/10.95, allocations: 265.9 kB / 4.026 GB, free: 17.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-05/10.95, allocations: 3.312 kB / 4.026 GB, free: 17.47 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/10.95, allocations: 3.688 kB / 4.026 GB, free: 17.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/10.95, allocations: 2.719 kB / 4.026 GB, free: 17.47 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/10.95, allocations: 3.594 kB / 4.026 GB, free: 17.47 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/10.95, allocations: 1.661 MB / 4.027 GB, free: 17.11 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/10.95, allocations: 0.9716 MB / 4.028 GB, free: 16.77 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007273/10.95, allocations: 3.953 kB / 4.028 GB, free: 16.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/10.95, allocations: 105.5 kB / 4.028 GB, free: 16.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/10.95, allocations: 111 kB / 4.029 GB, free: 16.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.225e-05/10.95, allocations: 34.34 kB / 4.029 GB, free: 16.75 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003704/10.96, allocations: 1.778 MB / 4.03 GB, free: 16.61 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.6e-07/10.96, allocations: 0 / 4.03 GB, free: 16.61 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01016/10.97, allocations: 1.871 MB / 4.032 GB, free: 16.36 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: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse46.phase,$cse46.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 (88): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01586/10.98, allocations: 4.249 MB / 4.036 GB, free: 15.12 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004567/10.99, allocations: 1.582 MB / 4.038 GB, free: 15.09 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/10.99, allocations: 3.125 kB / 4.038 GB, free: 15.09 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00145/10.99, allocations: 0.6098 MB / 4.038 GB, free: 15.09 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004926/11, allocations: 0.564 MB / 4.039 GB, free: 15.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/11.01, allocations: 3.625 MB / 4.042 GB, free: 13.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/11.01, allocations: 1.678 MB / 4.044 GB, free: 13.2 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003975/11.01, allocations: 2.214 MB / 4.046 GB, free: 13.14 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/11.01, allocations: 0.97 MB / 4.047 GB, free: 13.13 MB / 0.573 GB Notification: Performance of SimCode: time 1.282e-06/11.01, allocations: 0 / 4.047 GB, free: 13.13 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5779/11.59, allocations: 72.27 MB / 4.118 GB, free: 90.84 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/11.59, allocations: 190.1 kB / 4.118 GB, free: 90.65 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.019/16.61, allocations: 0 / 4.118 GB, free: 90.65 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat