Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004064/0.004072, allocations: 348.8 kB / 15.95 MB, free: 6.215 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 3.547/3.547, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003916/0.003916, allocations: 233.1 kB / 397.9 MB, free: 4.977 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.561/0.561, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006087/0.000609, allocations: 20 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.08518, allocations: 48.7 MB / 0.6067 GB, free: 4.668 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.3781/0.4633, allocations: 95.23 MB / 0.6997 GB, free: 17.8 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06183/0.5252, allocations: 34.66 MB / 0.7336 GB, free: 15.11 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0037/0.529, allocations: 107.2 kB / 0.7337 GB, free: 15 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005023/0.5341, allocations: 1.08 MB / 0.7347 GB, free: 13.92 MB / 394.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.02731/0.5614, allocations: 6.646 MB / 0.7412 GB, free: 7.273 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02916/0.5906, allocations: 7.147 MB / 0.7482 GB, free: 184 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01379/0.6045, allocations: 8.262 MB / 0.7563 GB, free: 7.898 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.6081, allocations: 1.275 MB / 0.7575 GB, free: 6.637 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006832/0.615, allocations: 2.257 MB / 0.7597 GB, free: 4.371 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3647/0.9797, allocations: 19.31 MB / 0.7786 GB, free: 19.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009819/0.9808, allocations: 114.6 kB / 0.7787 GB, free: 19.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02657/1.007, allocations: 8.996 MB / 0.7875 GB, free: 19.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00216/1.01, allocations: 0.818 MB / 0.7883 GB, free: 19.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/1.011, allocations: 0.5348 MB / 0.7888 GB, free: 19.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01499/1.026, allocations: 6.373 MB / 0.795 GB, free: 19.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/1.026, allocations: 0 / 0.795 GB, free: 19.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.386e-06/1.026, allocations: 0 / 0.795 GB, free: 19.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000106/1.026, allocations: 0 / 0.795 GB, free: 19.44 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01379/1.04, allocations: 3.599 MB / 0.7985 GB, free: 17.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/1.04, allocations: 11.28 kB / 0.7985 GB, free: 17.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007841/1.048, allocations: 0.7976 MB / 0.7993 GB, free: 17.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/1.064, allocations: 6.432 MB / 0.8056 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/1.064, allocations: 172.7 kB / 0.8058 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005582/1.065, allocations: 202.7 kB / 0.806 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/1.076, allocations: 3.557 MB / 0.8094 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.698e-05/1.076, allocations: 11.86 kB / 0.8095 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003503/1.076, allocations: 83.16 kB / 0.8095 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000384/1.077, allocations: 204 kB / 0.8097 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01219/1.089, allocations: 3.318 MB / 0.813 GB, free: 12.97 MB / 410.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.02755/1.117, allocations: 15.34 MB / 0.8279 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009033/1.126, allocations: 2.777 MB / 0.8307 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003647/1.129, allocations: 1.209 MB / 0.8318 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06394/1.193, allocations: 18.9 MB / 0.8503 GB, free: 7.035 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00711/1.201, allocations: 1.683 MB / 0.8519 GB, free: 5.734 MB / 442.7 MB Notification: Performance of pre-optimization done (n=169): time 8.546e-06/1.201, allocations: 0 / 0.8519 GB, free: 5.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=185): time 0.04063/1.241, allocations: 8.909 MB / 0.8606 GB, free: 14.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/1.241, allocations: 185.6 kB / 0.8608 GB, free: 14.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002912/1.244, allocations: 1.484 MB / 0.8623 GB, free: 13.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005219/1.245, allocations: 57.52 kB / 0.8623 GB, free: 13.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/1.246, allocations: 1.01 MB / 0.8633 GB, free: 12.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/1.247, allocations: 0.6197 MB / 0.8639 GB, free: 12.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/1.247, allocations: 39.19 kB / 0.864 GB, free: 12.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002246/1.248, allocations: 401.9 kB / 0.8643 GB, free: 12.03 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003656/1.251, allocations: 1.107 MB / 0.8654 GB, free: 11.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004276/1.256, allocations: 1.652 MB / 0.867 GB, free: 9.832 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004267/1.26, allocations: 1.372 MB / 0.8684 GB, free: 8.938 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.037e-05/1.26, allocations: 10.84 kB / 0.8684 GB, free: 8.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.0108/1.271, allocations: 3.315 MB / 0.8716 GB, free: 6.586 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000473/1.271, allocations: 0.5839 MB / 0.8722 GB, free: 5.844 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/1.271, allocations: 22.95 kB / 0.8722 GB, free: 5.824 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/1.273, allocations: 255.5 kB / 0.8725 GB, free: 5.613 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00455/1.277, allocations: 0.5465 MB / 0.873 GB, free: 5.121 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/1.279, allocations: 2.435 MB / 0.8754 GB, free: 2.746 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004426/1.284, allocations: 298.6 kB / 0.8757 GB, free: 2.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004985/1.284, allocations: 114 kB / 0.8758 GB, free: 2.398 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/1.285, allocations: 4 kB / 0.8758 GB, free: 2.395 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009836/1.294, allocations: 3.072 MB / 0.8788 GB, free: 316 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.338e-05/1.294, allocations: 12 kB / 0.8788 GB, free: 304 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/1.296, allocations: 256.2 kB / 0.879 GB, free: 88 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00437/1.3, allocations: 0.5376 MB / 0.8795 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/1.302, allocations: 2.438 MB / 0.8819 GB, free: 13.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004263/1.307, allocations: 303.3 kB / 0.8822 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004244/1.307, allocations: 105.9 kB / 0.8823 GB, free: 12.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00224/1.309, allocations: 0.7635 MB / 0.8831 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006873/1.31, allocations: 201.6 kB / 0.8833 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/1.327, allocations: 7.501 MB / 0.8906 GB, free: 7.035 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01411/1.342, allocations: 6.52 MB / 0.8969 GB, free: 2.492 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/1.342, allocations: 0 / 0.8969 GB, free: 2.492 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/1.344, allocations: 0.7192 MB / 0.8977 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006975/1.345, allocations: 55.98 kB / 0.8977 GB, free: 1.855 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003073/1.348, allocations: 262.4 kB / 0.898 GB, free: 1.629 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004674/1.348, allocations: 158.3 kB / 0.8981 GB, free: 1.496 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01347/1.362, allocations: 4.888 MB / 0.9029 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01628/1.378, allocations: 6.959 MB / 0.9097 GB, free: 9.238 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0051/1.383, allocations: 2.205 MB / 0.9118 GB, free: 7.973 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002397/1.386, allocations: 1.096 MB / 0.9129 GB, free: 7.133 MB / 490.7 MB Notification: Performance of Backend: time 2.064e-06/1.386, allocations: 4 kB / 0.9129 GB, free: 7.129 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02548/1.411, allocations: 6.008 MB / 0.9188 GB, free: 2.512 MB / 490.7 MB Notification: Performance of SimCode: time 0.01756/1.429, allocations: 7.291 MB / 0.9259 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.4813/1.91, allocations: 94.6 MB / 1.018 GB, free: 186.9 MB / 0.5105 GB