Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Generation5.Subsystems.Validation.SwitchBox.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Generation5.Subsystems.Validation.SwitchBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Generation5.Subsystems.Validation.SwitchBox") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.959/4.959, allocations: 0.5623 GB / 0.5776 GB, free: 3.324 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002527, allocations: 359.5 kB / 0.6447 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.386/4.386, allocations: 410.7 MB / 1.113 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001799/0.001798, allocations: 189.3 kB / 1.226 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005076/0.0005078, allocations: 12 kB / 1.349 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7278/0.7283, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Generation5.Subsystems.Validation.SwitchBox): time 0.2267/0.955, allocations: 191.7 MB / 1.649 GB, free: 92.55 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.07891/1.034, allocations: 44.13 MB / 1.692 GB, free: 48.38 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009494/1.044, allocations: 210.5 kB / 1.692 GB, free: 48.17 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.01156/1.055, allocations: 2.558 MB / 1.694 GB, free: 45.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.02942/1.085, allocations: 7.7 MB / 1.702 GB, free: 37.87 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.02832/1.113, allocations: 7.513 MB / 1.709 GB, free: 30.62 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.01982/1.133, allocations: 12.6 MB / 1.722 GB, free: 17.98 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007097/1.14, allocations: 3.183 MB / 1.725 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01017/1.15, allocations: 3.616 MB / 1.728 GB, free: 11.12 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007168/1.157, allocations: 3.084 MB / 1.731 GB, free: 8.02 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.001584/1.159, allocations: 176 kB / 1.731 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007434/1.167, allocations: 1.633 MB / 1.733 GB, free: 6.211 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.002092/1.169, allocations: 0.9064 MB / 1.734 GB, free: 5.301 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.002093/1.171, allocations: 0.9329 MB / 1.735 GB, free: 4.359 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.7841/1.955, allocations: 6.381 MB / 1.741 GB, free: 69.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/1.955, allocations: 0 / 1.741 GB, free: 69.5 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.396e-06/1.955, allocations: 1 kB / 1.741 GB, free: 69.5 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0002737/1.955, allocations: 1.25 kB / 1.741 GB, free: 69.5 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 650 * Number of variables: 650 Notification: Performance of Generate backend data structure: time 0.01446/1.97, allocations: 4.314 MB / 1.745 GB, free: 67.41 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/1.97, allocations: 12.91 kB / 1.745 GB, free: 67.41 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005534/1.975, allocations: 0.782 MB / 1.746 GB, free: 67.16 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/1.986, allocations: 3.483 MB / 1.749 GB, free: 66.52 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001366/1.987, allocations: 356.4 kB / 1.75 GB, free: 66.52 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009991/1.988, allocations: 291.9 kB / 1.75 GB, free: 66.51 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009594/1.998, allocations: 3.133 MB / 1.753 GB, free: 66.11 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.28e-05/1.998, allocations: 4.25 kB / 1.753 GB, free: 66.11 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004309/1.998, allocations: 111.7 kB / 1.753 GB, free: 66.11 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-05/1.999, allocations: 73.56 kB / 1.753 GB, free: 66.11 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009304/2.008, allocations: 2.54 MB / 1.756 GB, free: 66.07 MB / 0.8542 GB 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.03443/2.042, allocations: 17.09 MB / 1.772 GB, free: 57.16 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009225/2.052, allocations: 2.115 MB / 1.774 GB, free: 56.55 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004536/2.056, allocations: 0.9253 MB / 1.775 GB, free: 56.53 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0122/2.068, allocations: 4.264 MB / 1.78 GB, free: 55.12 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003209/2.072, allocations: 1.076 MB / 1.781 GB, free: 55.03 MB / 0.8542 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004035/2.076, allocations: 0.5204 MB / 1.781 GB, free: 54.93 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=132): time 1.164e-05/2.076, allocations: 4 kB / 1.781 GB, free: 54.93 MB / 0.8542 GB Notification: Performance of matching and sorting (n=138): time 0.02884/2.105, allocations: 6.96 MB / 1.788 GB, free: 52.92 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/2.105, allocations: 123 kB / 1.788 GB, free: 52.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007055/2.112, allocations: 3.316 MB / 1.791 GB, free: 52.45 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.000603/2.113, allocations: 80.92 kB / 1.791 GB, free: 52.41 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.002151/2.115, allocations: 1.885 MB / 1.793 GB, free: 51.84 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008279/2.116, allocations: 444.1 kB / 1.794 GB, free: 51.57 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/2.116, allocations: 42.72 kB / 1.794 GB, free: 51.57 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001584/2.116, allocations: 392.3 kB / 1.794 GB, free: 51.27 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003275/2.119, allocations: 0.8889 MB / 1.795 GB, free: 51.25 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003951/2.123, allocations: 1.754 MB / 1.797 GB, free: 50.22 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003817/2.127, allocations: 1.077 MB / 1.798 GB, free: 50.16 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.041e-05/2.127, allocations: 10.97 kB / 1.798 GB, free: 50.16 MB / 0.8542 GB Notification: Performance of matching and sorting (n=287) (initialization): time 0.01097/2.138, allocations: 3.148 MB / 1.801 GB, free: 49.83 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005172/2.139, allocations: 0.7731 MB / 1.801 GB, free: 48.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.547e-05/2.139, allocations: 27.09 kB / 1.801 GB, free: 48.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005027/2.144, allocations: 0.6147 MB / 1.802 GB, free: 48.85 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003722/2.148, allocations: 463.8 kB / 1.803 GB, free: 48.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/2.164, allocations: 7.714 MB / 1.81 GB, free: 44.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006167/2.17, allocations: 327.2 kB / 1.81 GB, free: 44.55 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006983/2.171, allocations: 128.4 kB / 1.81 GB, free: 44.55 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/2.171, allocations: 3.562 kB / 1.81 GB, free: 44.55 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009778/2.181, allocations: 2.801 MB / 1.813 GB, free: 44.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.455e-05/2.181, allocations: 28.41 kB / 1.813 GB, free: 44.44 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004822/2.186, allocations: 0.6171 MB / 1.814 GB, free: 44.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003548/2.189, allocations: 466.2 kB / 1.814 GB, free: 44.39 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/2.205, allocations: 7.703 MB / 1.822 GB, free: 40.15 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005813/2.21, allocations: 312.6 kB / 1.822 GB, free: 40.11 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005777/2.211, allocations: 131 kB / 1.822 GB, free: 40.11 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 59 ($PRE.floSwiBox.con.truFalHol.onDel1.u,$PRE.floSwiBox.con.truFalHol.onDel2.u,$PRE.floSwiBox.con.truFalHol.toTrue.enableFire,$PRE.floSwiBox.con.truFalHol.toFalse.enableFire,$PRE.floSwiBox.con.truFalHol.toTrue1.enableFire,$PRE.floSwiBox.con.truFalHol.toFalse1.enableFire,$whenCondition7,$PRE.setMasFlo2.nextTimeEvent,$whenCondition4,$PRE.floSwiBox.con.truFalHol.onDel2.t_next,$whenCondition1,$PRE.floSwiBox.con.truFalHol.onDel1.t_next,floSwiBox.con.truFalHol.onDel2.t_next,floSwiBox.con.truFalHol.onDel1.t_next,floSwiBox.con.truFalHol.stateGraphRoot.resume,floSwiBox.con.truFalHol.stateGraphRoot.suspend,$whenCondition5,$whenCondition6,$whenCondition2,$whenCondition3,floSwiBox.con.truFalHol.u,floSwiBox.con.truFalHol.onDel1.u,floSwiBox.con.truFalHol.onDel1.y,floSwiBox.con.truFalHol.onDel2.u,floSwiBox.con.truFalHol.onDel2.y,floSwiBox.con.truFalHol.stateGraphRoot.activeSteps,$PRE.floSwiBox.con.truFalHol.outputFalse.localActive,floSwiBox.con.truFalHol.outputFalse.localActive,floSwiBox.con.truFalHol.outputFalse.inPort[2].occupied,$PRE.floSwiBox.con.truFalHol.outputFalse.newActive,floSwiBox.con.truFalHol.outputFalse.newActive,$PRE.floSwiBox.con.truFalHol.outputFalse.oldActive,floSwiBox.con.truFalHol.outputFalse.oldActive,floSwiBox.con.truFalHol.outputFalse.active,floSwiBox.con.truFalHol.toTrue.localCondition,floSwiBox.con.truFalHol.toTrue.enableFire,$PRE.floSwiBox.con.truFalHol.outputTrue.localActive,floSwiBox.con.truFalHol.outputTrue.localActive,floSwiBox.con.truFalHol.outputTrue.inPort[2].occupied,$PRE.floSwiBox.con.truFalHol.outputTrue.newActive,floSwiBox.con.truFalHol.outputTrue.newActive,$PRE.floSwiBox.con.truFalHol.outputTrue.oldActive,floSwiBox.con.truFalHol.outputTrue.oldActive,floSwiBox.con.truFalHol.outputTrue.active,floSwiBox.con.truFalHol.toFalse.localCondition,floSwiBox.con.truFalHol.toFalse.enableFire,floSwiBox.con.truFalHol.initialStep.active,$PRE.floSwiBox.con.truFalHol.initialStep.localActive,floSwiBox.con.truFalHol.initialStep.localActive,floSwiBox.con.truFalHol.initialStep.outPort[2].available,$PRE.floSwiBox.con.truFalHol.initialStep.newActive,floSwiBox.con.truFalHol.initialStep.newActive,$PRE.floSwiBox.con.truFalHol.initialStep.oldActive,floSwiBox.con.truFalHol.initialStep.oldActive,floSwiBox.con.truFalHol.toTrue1.enableFire,floSwiBox.con.truFalHol.toFalse1.enableFire,setMasFlo2.nextTimeEvent,$PRE.setMasFlo2.nextTimeEventScaled,setMasFlo2.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (258): * Single equations (assignments): 253 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.003064/2.214, allocations: 0.9526 MB / 1.823 GB, free: 39.88 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/2.215, allocations: 349.5 kB / 1.824 GB, free: 39.69 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009345/2.225, allocations: 2.554 MB / 1.826 GB, free: 39.46 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006904/2.232, allocations: 2.191 MB / 1.828 GB, free: 38.92 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/2.232, allocations: 0 / 1.828 GB, free: 38.92 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/2.234, allocations: 0.6625 MB / 1.829 GB, free: 38.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009042/2.235, allocations: 36.95 kB / 1.829 GB, free: 38.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003941/2.239, allocations: 234.5 kB / 1.829 GB, free: 38.59 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005147/2.24, allocations: 144.1 kB / 1.829 GB, free: 38.59 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008317/2.248, allocations: 2.3 MB / 1.831 GB, free: 38.28 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.009635/2.258, allocations: 3.379 MB / 1.835 GB, free: 37.69 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00267/2.26, allocations: 0.8777 MB / 1.836 GB, free: 37.67 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.005362/2.266, allocations: 2.173 MB / 1.838 GB, free: 37.49 MB / 0.8542 GB Notification: Performance of Backend: time 1.472e-06/2.266, allocations: 0 / 1.838 GB, free: 37.49 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01812/2.284, allocations: 5.056 MB / 1.843 GB, free: 36.41 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0251/2.309, allocations: 8.902 MB / 1.851 GB, free: 31.82 MB / 0.8542 GB Notification: Performance of Templates: time 0.2062/2.515, allocations: 79.55 MB / 1.929 GB, free: 5.957 MB / 0.9011 GB