Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements") translateModel(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.786/0.786, allocations: 143.4 MB / 159.2 MB, free: 4.938 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 187.7 kB / 191.9 MB, free: 5.746 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 114.5 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 284.4 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 79.88 kB / 0.6885 GB, free: 3.832 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3861, allocations: 81.3 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.5564/0.9425, allocations: 160.7 MB / 0.9248 GB, free: 1.293 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.03796/0.9805, allocations: 27.21 MB / 0.9514 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005643/0.9862, allocations: 77.75 kB / 0.9515 GB, free: 0.8242 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.003485/0.9898, allocations: 0.9989 MB / 0.9524 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.007039/0.9969, allocations: 1.714 MB / 0.9541 GB, free: 0.7305 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006505/1.003, allocations: 1.749 MB / 0.9558 GB, free: 0.6758 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.01009/1.013, allocations: 6.187 MB / 0.9619 GB, free: 308 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0091/1.023, allocations: 4.352 MB / 0.9661 GB, free: 14.5 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005678/1.028, allocations: 1.925 MB / 0.968 GB, free: 13.81 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005734/1.034, allocations: 2.644 MB / 0.9706 GB, free: 12.83 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.001931/1.036, allocations: 289.9 kB / 0.9709 GB, free: 12.83 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004445/1.041, allocations: 0.8848 MB / 0.9717 GB, free: 12.68 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.002576/1.043, allocations: 1.105 MB / 0.9728 GB, free: 12.15 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.005965/1.049, allocations: 2.121 MB / 0.9749 GB, free: 10.8 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01126/1.06, allocations: 6.426 MB / 0.9811 GB, free: 6.344 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/1.061, allocations: 0 / 0.9811 GB, free: 6.344 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.404e-06/1.061, allocations: 0 / 0.9811 GB, free: 6.344 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004005/1.061, allocations: 3.938 kB / 0.9811 GB, free: 6.34 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01721/1.078, allocations: 5.096 MB / 0.9861 GB, free: 2.922 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.078, allocations: 11.25 kB / 0.9861 GB, free: 2.922 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01492/1.093, allocations: 2.829 MB / 0.9889 GB, free: 0.7266 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007422/1.101, allocations: 2.513 MB / 0.9913 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003145/1.101, allocations: 279.5 kB / 0.9916 GB, free: 14.02 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001771/1.103, allocations: 372 kB / 0.992 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01732/1.12, allocations: 5.721 MB / 0.9976 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/1.12, allocations: 14.52 kB / 0.9976 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004514/1.121, allocations: 152 kB / 0.9977 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.745e-05/1.121, allocations: 92 kB / 0.9978 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/1.14, allocations: 6.855 MB / 1.004 GB, free: 0.7656 MB / 0.5886 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.03837/1.178, allocations: 17.37 MB / 1.021 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/1.19, allocations: 4.482 MB / 1.026 GB, free: 10.48 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006912/1.197, allocations: 2.94 MB / 1.029 GB, free: 7.539 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/1.198, allocations: 0.6734 MB / 1.029 GB, free: 6.754 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007469/1.205, allocations: 2.725 MB / 1.032 GB, free: 3.992 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=315): time 8.216e-06/1.206, allocations: 0 / 1.032 GB, free: 3.992 MB / 0.6198 GB Notification: Performance of matching and sorting (n=315): time 0.03174/1.237, allocations: 9.692 MB / 1.041 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/1.237, allocations: 216.9 kB / 1.042 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005393/1.243, allocations: 2.65 MB / 1.044 GB, free: 7.285 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.00108/1.244, allocations: 77.7 kB / 1.044 GB, free: 7.203 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.001984/1.246, allocations: 1.539 MB / 1.046 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.00213/1.248, allocations: 1.043 MB / 1.047 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002704/1.251, allocations: 0.5447 MB / 1.047 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.251, allocations: 301.1 kB / 1.048 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005677/1.257, allocations: 2.179 MB / 1.05 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006205/1.263, allocations: 2.524 MB / 1.052 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/1.275, allocations: 4.715 MB / 1.057 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/1.275, allocations: 4 kB / 1.057 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01646/1.291, allocations: 5.795 MB / 1.063 GB, free: 4.418 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/1.292, allocations: 4 kB / 1.063 GB, free: 4.414 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/1.292, allocations: 4 kB / 1.063 GB, free: 4.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/1.293, allocations: 0.8421 MB / 1.063 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004565/1.298, allocations: 0.8156 MB / 1.064 GB, free: 2.781 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/1.309, allocations: 6.995 MB / 1.071 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004961/1.314, allocations: 0.5944 MB / 1.072 GB, free: 11.07 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009564/1.315, allocations: 119.9 kB / 1.072 GB, free: 10.96 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.intGai.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,60,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003449/1.319, allocations: 1.033 MB / 1.073 GB, free: 9.945 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001488/1.32, allocations: 308.1 kB / 1.073 GB, free: 9.641 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/1.34, allocations: 6.384 MB / 1.079 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/1.34, allocations: 32 kB / 1.079 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.942e-05/1.34, allocations: 12 kB / 1.079 GB, free: 3.18 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.806e-05/1.34, allocations: 15.94 kB / 1.079 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0257/1.366, allocations: 10.73 MB / 1.09 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.366, allocations: 0 / 1.09 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004073/1.37, allocations: 0.7701 MB / 1.091 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/1.372, allocations: 0.7327 MB / 1.091 GB, free: 6.934 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005908/1.372, allocations: 83.94 kB / 1.091 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/1.384, allocations: 9.805 MB / 1.101 GB, free: 12.66 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.384, allocations: 0 / 1.101 GB, free: 12.66 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7442/2.128, allocations: 136.2 MB / 1.234 GB, free: 314.1 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/2.131, allocations: 0.8923 MB / 1.235 GB, free: 313.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007333/2.132, allocations: 67.84 kB / 1.235 GB, free: 313.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003359/2.135, allocations: 434.9 kB / 1.235 GB, free: 312.8 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000525/2.136, allocations: 214.2 kB / 1.236 GB, free: 312.6 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002461/2.136, allocations: 111.4 kB / 1.236 GB, free: 312.5 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002275/2.138, allocations: 1.92 MB / 1.237 GB, free: 310.6 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.41e-07/2.138, allocations: 6.719 kB / 1.238 GB, free: 310.5 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006386/2.144, allocations: 1.87 MB / 1.239 GB, free: 308.7 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thermalZoneFourElements.volAir.dynBal.U,thermalZoneFourElements.volAir.dynBal.m,thermalZoneFourElements.extWallRC.thermCapExt[1].T,thermalZoneFourElements.intWallRC.thermCapInt[1].T,thermalZoneFourElements.floorRC.thermCapExt[1].T,thermalZoneFourElements.roofRC.thermCapExt[1].T) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 4 (intGai.nextTimeEvent,intGai.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,49,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002776/2.147, allocations: 1.081 MB / 1.24 GB, free: 308.1 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.01152/2.159, allocations: 5.498 MB / 1.246 GB, free: 302.6 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/2.159, allocations: 4.688 kB / 1.246 GB, free: 302.6 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.006156/2.165, allocations: 3.331 MB / 1.249 GB, free: 299.2 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/2.169, allocations: 0.7191 MB / 1.25 GB, free: 298.5 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/2.188, allocations: 13.53 MB / 1.263 GB, free: 284.9 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00258/2.191, allocations: 2.822 MB / 1.266 GB, free: 282 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.006702/2.198, allocations: 1.487 MB / 1.267 GB, free: 280.5 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002907/2.201, allocations: 343.1 kB / 1.267 GB, free: 280.2 MB / 0.7761 GB Notification: Performance of SimCode: time 1.142e-06/2.201, allocations: 0 / 1.267 GB, free: 280.2 MB / 0.7761 GB Notification: Performance of Templates: time 0.1403/2.341, allocations: 106.3 MB / 1.371 GB, free: 174.2 MB / 0.7761 GB make -j1 -f BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.makefile (rm -f BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; mkfifo BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe >> ../files/BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.sim & ./BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe 2>&1)