Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01007/0.01008, allocations: 163.4 kB / 15.12 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.647/1.647, allocations: 170.8 MB / 186.6 MB, free: 1.113 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001693/0.001693, allocations: 98.83 kB / 226.2 MB, free: 10.08 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4486/0.4486, allocations: 38.05 MB / 303.7 MB, free: 42.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004804, allocations: 12 kB / 363 MB, free: 5.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.101, allocations: 48.72 MB / 411.7 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.3228/0.4238, allocations: 44.12 MB / 455.8 MB, free: 26.78 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03787/0.4618, allocations: 24.15 MB / 480 MB, free: 9.977 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.4635, allocations: 42.06 kB / 480 MB, free: 9.957 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.4653, allocations: 448.3 kB / 480.5 MB, free: 9.727 MB / 330.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01887/0.4842, allocations: 4.8 MB / 485.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01575/0.5, allocations: 4.068 MB / 489.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004738/0.5048, allocations: 3.085 MB / 492.4 MB, free: 4.309 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.5061, allocations: 0.4945 MB / 492.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0243/0.5304, allocations: 9.169 MB / 0.4903 GB, free: 1.902 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04468/0.5752, allocations: 14.71 MB / 0.5047 GB, free: 4.387 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003912/0.5756, allocations: 40 kB / 0.5047 GB, free: 4.348 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03142/0.6071, allocations: 7.893 MB / 0.5124 GB, free: 12.45 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008949/0.608, allocations: 295 kB / 0.5127 GB, free: 12.16 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006662/0.6087, allocations: 229.2 kB / 0.5129 GB, free: 11.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.6221, allocations: 4.077 MB / 0.5169 GB, free: 7.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.6222, allocations: 0 / 0.5169 GB, free: 7.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6222, allocations: 0 / 0.5169 GB, free: 7.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.612e-05/0.6222, allocations: 0 / 0.5169 GB, free: 7.84 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.008277/0.6305, allocations: 1.898 MB / 0.5187 GB, free: 5.891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.786e-05/0.6306, allocations: 12.03 kB / 0.5188 GB, free: 5.879 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004054/0.631, allocations: 130.8 kB / 0.5189 GB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003746/0.6348, allocations: 369.5 kB / 0.5192 GB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01879/0.6536, allocations: 6.958 MB / 0.526 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.6538, allocations: 69.92 kB / 0.5261 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.654, allocations: 75.98 kB / 0.5262 GB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005083/0.6591, allocations: 1.451 MB / 0.5276 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.6592, allocations: 0 / 0.5276 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.6593, allocations: 39.98 kB / 0.5276 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.6595, allocations: 69.89 kB / 0.5277 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005387/0.6649, allocations: 1.342 MB / 0.529 GB, free: 11.25 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/0.6795, allocations: 6.542 MB / 0.5354 GB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004711/0.6843, allocations: 1.015 MB / 0.5364 GB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/0.6859, allocations: 461.7 kB / 0.5368 GB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1132/0.7991, allocations: 32.39 MB / 0.5684 GB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.537e-05/0.7992, allocations: 43 kB / 0.5685 GB, free: 14.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.246e-06/0.7993, allocations: 0 / 0.5685 GB, free: 14.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.01399/0.8133, allocations: 3.325 MB / 0.5717 GB, free: 11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.8134, allocations: 162.8 kB / 0.5719 GB, free: 10.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.8147, allocations: 0.7036 MB / 0.5726 GB, free: 10.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.8148, allocations: 37.7 kB / 0.5726 GB, free: 10.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004591/0.8153, allocations: 427.5 kB / 0.573 GB, free: 9.625 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.8156, allocations: 205 kB / 0.5732 GB, free: 9.422 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/0.8157, allocations: 16 kB / 0.5732 GB, free: 9.406 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.8159, allocations: 394.7 kB / 0.5736 GB, free: 9.012 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.8175, allocations: 417.7 kB / 0.574 GB, free: 8.605 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.8193, allocations: 0.6211 MB / 0.5746 GB, free: 7.891 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.821, allocations: 477.9 kB / 0.5751 GB, free: 7.422 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.821, allocations: 3.938 kB / 0.5751 GB, free: 7.418 MB / 426.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004599/0.8256, allocations: 1.358 MB / 0.5764 GB, free: 6.055 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002389/0.8259, allocations: 274.8 kB / 0.5767 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.8259, allocations: 8 kB / 0.5767 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005378/0.8313, allocations: 0.6837 MB / 0.5773 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.8325, allocations: 155.8 kB / 0.5775 GB, free: 4.848 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/0.8353, allocations: 1.304 MB / 0.5788 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.8368, allocations: 103.8 kB / 0.5789 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.8369, allocations: 39.98 kB / 0.5789 GB, free: 3.379 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.8369, allocations: 4 kB / 0.5789 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004619/0.8416, allocations: 1.232 MB / 0.5801 GB, free: 2.141 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.8416, allocations: 9.969 kB / 0.5801 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003173/0.8448, allocations: 446.1 kB / 0.5805 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.846, allocations: 171.8 kB / 0.5807 GB, free: 1.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/0.8483, allocations: 1.114 MB / 0.5818 GB, free: 396 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.8497, allocations: 99.86 kB / 0.5819 GB, free: 296 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.8498, allocations: 39.98 kB / 0.5819 GB, free: 256 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.2849/1.135, allocations: 363.8 kB / 0.5823 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/1.135, allocations: 83.94 kB / 0.5824 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007258/1.142, allocations: 3.327 MB / 0.5856 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-05/1.142, allocations: 38.5 kB / 0.5856 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/1.143, allocations: 1.656 kB / 0.5856 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005713/1.148, allocations: 2.788 MB / 0.5884 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008751/1.157, allocations: 4.562 MB / 0.5928 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.157, allocations: 0 / 0.5928 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/1.158, allocations: 177.1 kB / 0.593 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006212/1.159, allocations: 94.28 kB / 0.5931 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/1.159, allocations: 20.25 kB / 0.5931 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004718/1.16, allocations: 0.6519 MB / 0.5937 GB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.16, allocations: 0 / 0.5937 GB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006177/1.166, allocations: 2.907 MB / 0.5966 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.167, allocations: 445.2 kB / 0.597 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003181/1.167, allocations: 18.88 kB / 0.597 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/1.169, allocations: 80.84 kB / 0.5971 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/1.169, allocations: 61.48 kB / 0.5971 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.32e-05/1.169, allocations: 26.98 kB / 0.5972 GB, free: 129.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001535/1.17, allocations: 0.7849 MB / 0.5979 GB, free: 129.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.17, allocations: 1.969 kB / 0.5979 GB, free: 129.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005681/1.176, allocations: 1.572 MB / 0.5995 GB, free: 129.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01464/1.191, allocations: 4.861 MB / 0.6042 GB, free: 127.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005516/1.196, allocations: 1.853 MB / 0.606 GB, free: 127 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.196, allocations: 0 / 0.606 GB, free: 127 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/1.198, allocations: 0.8876 MB / 0.6069 GB, free: 126.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004442/1.203, allocations: 480.9 kB / 0.6074 GB, free: 126.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/1.224, allocations: 8.36 MB / 0.6155 GB, free: 122.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.225, allocations: 1.343 MB / 0.6168 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002669/1.228, allocations: 0.9004 MB / 0.6177 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/1.229, allocations: 0.5606 MB / 0.6183 GB, free: 121.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/1.229, allocations: 0 / 0.6183 GB, free: 121.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1536/1.382, allocations: 69.92 MB / 0.6865 GB, free: 59.87 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/1.383, allocations: 272.3 kB / 0.6868 GB, free: 59.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.732/8.115, allocations: 0 / 0.6868 GB, free: 59.51 MB / 426.7 MB