Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01146/0.01146, allocations: 107.8 kB / 15.06 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00125/0.001249, allocations: 186.3 kB / 15.95 MB, free: 5.902 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.055/2.055, allocations: 194.6 MB / 211.3 MB, free: 11.02 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2925/0.2925, allocations: 40.04 MB / 296.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007222/0.0007227, allocations: 12.05 kB / 361.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1282, allocations: 54.87 MB / 416 MB, free: 9.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.3951/0.5234, allocations: 55.58 MB / 471.6 MB, free: 13.22 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05357/0.577, allocations: 25.97 MB / 497.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002617/0.5797, allocations: 63.5 kB / 497.6 MB, free: 4.645 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0039/0.5836, allocations: 0.7778 MB / 498.4 MB, free: 3.863 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0231/0.6068, allocations: 5.104 MB / 0.4917 GB, free: 14.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02386/0.6307, allocations: 5.529 MB / 0.4971 GB, free: 9.211 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006044/0.6368, allocations: 2.399 MB / 0.4994 GB, free: 6.805 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00195/0.6388, allocations: 0.8046 MB / 0.5002 GB, free: 5.984 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004918/0.6437, allocations: 1.406 MB / 0.5016 GB, free: 4.574 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03632/0.6801, allocations: 12.21 MB / 0.5135 GB, free: 8.348 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006646/0.6808, allocations: 68 kB / 0.5136 GB, free: 8.281 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02803/0.7089, allocations: 9.196 MB / 0.5226 GB, free: 15.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001326/0.7103, allocations: 490.6 kB / 0.5231 GB, free: 14.59 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009091/0.7112, allocations: 348.9 kB / 0.5234 GB, free: 14.25 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.7268, allocations: 5.227 MB / 0.5285 GB, free: 9.008 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.7269, allocations: 0 / 0.5285 GB, free: 9.008 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7269, allocations: 0 / 0.5285 GB, free: 9.008 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.546e-05/0.727, allocations: 0 / 0.5285 GB, free: 9.008 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01089/0.7379, allocations: 2.656 MB / 0.5311 GB, free: 6.289 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.738, allocations: 8.031 kB / 0.5311 GB, free: 6.281 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008008/0.7388, allocations: 198 kB / 0.5313 GB, free: 6.078 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005829/0.7446, allocations: 0.5365 MB / 0.5318 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003705/0.7484, allocations: 1.101 MB / 0.5329 GB, free: 4.395 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.7487, allocations: 110.4 kB / 0.533 GB, free: 4.285 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004795/0.7491, allocations: 124 kB / 0.5331 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008652/0.7578, allocations: 2.216 MB / 0.5353 GB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.369e-05/0.7579, allocations: 7.938 kB / 0.5353 GB, free: 1.824 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/0.7582, allocations: 55.97 kB / 0.5353 GB, free: 1.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002814/0.7585, allocations: 114.2 kB / 0.5354 GB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00875/0.7673, allocations: 2.046 MB / 0.5374 GB, free: 15.6 MB / 426.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.02193/0.7892, allocations: 9.575 MB / 0.5468 GB, free: 5.203 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005958/0.7953, allocations: 1.381 MB / 0.5481 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06463/0.86, allocations: 19.03 MB / 0.5667 GB, free: 14.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004504/0.8645, allocations: 1.021 MB / 0.5677 GB, free: 13.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=96): time 5.78e-06/0.8646, allocations: 0 / 0.5677 GB, free: 13.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=104): time 0.02351/0.8881, allocations: 5.141 MB / 0.5727 GB, free: 8.191 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.8883, allocations: 226.6 kB / 0.5729 GB, free: 7.922 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002346/0.8907, allocations: 1.08 MB / 0.574 GB, free: 6.828 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.891, allocations: 45.7 kB / 0.574 GB, free: 6.777 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008562/0.8919, allocations: 0.6747 MB / 0.5747 GB, free: 6.094 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006389/0.8925, allocations: 358.9 kB / 0.575 GB, free: 5.738 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.8927, allocations: 24 kB / 0.5751 GB, free: 5.715 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.8929, allocations: 361.9 kB / 0.5754 GB, free: 5.355 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002478/0.8954, allocations: 0.6747 MB / 0.5761 GB, free: 4.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.8984, allocations: 1.028 MB / 0.5771 GB, free: 3.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/0.9013, allocations: 0.84 MB / 0.5779 GB, free: 2.656 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/0.9014, allocations: 4 kB / 0.5779 GB, free: 2.652 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.007425/0.9088, allocations: 2.015 MB / 0.5799 GB, free: 0.6211 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001719/0.9106, allocations: 3.78 MB / 0.5836 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.575e-05/0.9107, allocations: 12 kB / 0.5836 GB, free: 12.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009895/0.9117, allocations: 145.5 kB / 0.5837 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.9147, allocations: 335.6 kB / 0.584 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.9163, allocations: 1.261 MB / 0.5853 GB, free: 10.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002629/0.919, allocations: 155.9 kB / 0.5854 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003575/0.9194, allocations: 63.98 kB / 0.5855 GB, free: 10.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.9194, allocations: 4 kB / 0.5855 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006628/0.9261, allocations: 1.854 MB / 0.5873 GB, free: 8.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.787e-05/0.9262, allocations: 15.94 kB / 0.5873 GB, free: 8.645 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007896/0.927, allocations: 142.1 kB / 0.5874 GB, free: 8.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002691/0.9297, allocations: 331.5 kB / 0.5878 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.931, allocations: 1.261 MB / 0.589 GB, free: 6.863 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/0.9333, allocations: 147.9 kB / 0.5891 GB, free: 6.719 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/0.9337, allocations: 63.98 kB / 0.5892 GB, free: 6.656 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.9351, allocations: 0.5546 MB / 0.5897 GB, free: 6.082 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004049/0.9355, allocations: 130.4 kB / 0.5899 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01115/0.9467, allocations: 4.728 MB / 0.5945 GB, free: 1.164 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-05/0.9469, allocations: 51.92 kB / 0.5945 GB, free: 1.113 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.9469, allocations: 0 / 0.5945 GB, free: 1.113 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3216/1.268, allocations: 3.943 MB / 0.5984 GB, free: 160.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01701/1.286, allocations: 6.692 MB / 0.6049 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/1.286, allocations: 1.312 kB / 0.6049 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/1.288, allocations: 243.5 kB / 0.6051 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/1.289, allocations: 204 kB / 0.6053 GB, free: 157.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002832/1.289, allocations: 39.27 kB / 0.6054 GB, free: 157.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/1.291, allocations: 1.287 MB / 0.6066 GB, free: 156.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.291, allocations: 4.125 kB / 0.6066 GB, free: 156.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.302, allocations: 4.31 MB / 0.6108 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/1.304, allocations: 0.5219 MB / 0.6114 GB, free: 154.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000559/1.304, allocations: 35.14 kB / 0.6114 GB, free: 154.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.307, allocations: 121.9 kB / 0.6115 GB, free: 154.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004693/1.307, allocations: 88.08 kB / 0.6116 GB, free: 154.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/1.307, allocations: 39.31 kB / 0.6116 GB, free: 154.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002254/1.31, allocations: 0.8451 MB / 0.6124 GB, free: 154.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.31, allocations: 1.031 kB / 0.6124 GB, free: 154.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009068/1.319, allocations: 2.041 MB / 0.6144 GB, free: 154.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02217/1.341, allocations: 6.631 MB / 0.6209 GB, free: 151.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009375/1.35, allocations: 3.257 MB / 0.6241 GB, free: 150.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.35, allocations: 0 / 0.6241 GB, free: 150.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003797/1.354, allocations: 1.483 MB / 0.6255 GB, free: 149.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005698/1.36, allocations: 0.5719 MB / 0.6261 GB, free: 149.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/1.379, allocations: 13.91 MB / 0.6397 GB, free: 137.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/1.381, allocations: 1.718 MB / 0.6414 GB, free: 136.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00446/1.385, allocations: 1.592 MB / 0.6429 GB, free: 134.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001734/1.387, allocations: 0.8429 MB / 0.6437 GB, free: 133.6 MB / 474.7 MB Notification: Performance of SimCode: time 9.61e-07/1.387, allocations: 7.938 kB / 0.6437 GB, free: 133.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1968/1.584, allocations: 84.47 MB / 0.7262 GB, free: 49.15 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/1.584, allocations: 266.2 kB / 0.7265 GB, free: 48.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.574/10.16, allocations: 0 / 0.7265 GB, free: 48.8 MB / 474.7 MB