Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.conf.json 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/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement,tolerance=1e-06,outputFormat="mat",numberOfIntervals=17520,variableFilter="time|thermalZoneOneElement.TAir",fileNamePrefix="Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement,tolerance=1e-06,outputFormat="mat",numberOfIntervals=17520,variableFilter="time|thermalZoneOneElement.TAir",fileNamePrefix="Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001211, allocations: 107.8 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 196.5 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.368/2.368, allocations: 437 MB / 0.7107 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 61.3 kB / 0.8694 GB, free: 2.578 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3821, allocations: 151.6 MB / 1.017 GB, free: 11.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.8347/1.217, allocations: 159.7 MB / 1.173 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.04466/1.261, allocations: 26.59 MB / 1.199 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004729/1.266, allocations: 70.53 kB / 1.199 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003472/1.27, allocations: 0.915 MB / 1.2 GB, free: 8.238 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007672/1.277, allocations: 1.631 MB / 1.202 GB, free: 7.039 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005486/1.283, allocations: 1.55 MB / 1.203 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.008849/1.292, allocations: 5.29 MB / 1.209 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006913/1.299, allocations: 4.161 MB / 1.213 GB, free: 148 kB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005314/1.304, allocations: 2.113 MB / 1.215 GB, free: 14.95 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005554/1.31, allocations: 2.558 MB / 1.217 GB, free: 13.13 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002643/1.312, allocations: 456 kB / 1.218 GB, free: 12.68 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005209/1.318, allocations: 1.034 MB / 1.219 GB, free: 11.65 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.002475/1.32, allocations: 1.176 MB / 1.22 GB, free: 10.47 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.005412/1.326, allocations: 2.127 MB / 1.222 GB, free: 8.332 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.008397/1.334, allocations: 4.627 MB / 1.226 GB, free: 3.695 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/1.334, allocations: 4 kB / 1.226 GB, free: 3.691 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.224e-06/1.334, allocations: 0 / 1.226 GB, free: 3.691 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0002603/1.334, allocations: 0 / 1.226 GB, free: 3.691 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 815 * Number of variables: 815 Notification: Performance of Generate backend data structure: time 0.01471/1.349, allocations: 4.616 MB / 1.231 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/1.349, allocations: 11.97 kB / 1.231 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01702/1.366, allocations: 2.769 MB / 1.234 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005918/1.372, allocations: 2.29 MB / 1.236 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002498/1.372, allocations: 238.4 kB / 1.236 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/1.373, allocations: 308 kB / 1.236 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01706/1.391, allocations: 5.166 MB / 1.241 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/1.391, allocations: 0 / 1.241 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/1.392, allocations: 128 kB / 1.242 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.078e-05/1.392, allocations: 84 kB / 1.242 GB, free: 3.84 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02072/1.412, allocations: 6.287 MB / 1.248 GB, free: 13.54 MB / 0.9512 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.03791/1.45, allocations: 14.88 MB / 1.262 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01492/1.465, allocations: 4.7 MB / 1.267 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007365/1.473, allocations: 2.441 MB / 1.269 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001261/1.474, allocations: 0.674 MB / 1.27 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008191/1.482, allocations: 2.634 MB / 1.273 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=278): time 6.382e-06/1.482, allocations: 0 / 1.273 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of matching and sorting (n=278): time 0.02568/1.508, allocations: 7.392 MB / 1.28 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/1.508, allocations: 210.1 kB / 1.28 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/1.513, allocations: 2.417 MB / 1.282 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0008439/1.514, allocations: 77.7 kB / 1.282 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001545/1.515, allocations: 1.349 MB / 1.284 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001692/1.517, allocations: 0.9088 MB / 1.285 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002222/1.519, allocations: 0.5047 MB / 1.285 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001073/1.519, allocations: 305.1 kB / 1.285 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006738/1.526, allocations: 2.034 MB / 1.287 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007156/1.533, allocations: 2.337 MB / 1.29 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/1.547, allocations: 4.277 MB / 1.294 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/1.547, allocations: 0 / 1.294 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=322) (initialization): time 0.01612/1.563, allocations: 4.993 MB / 1.299 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/1.563, allocations: 8.156 kB / 1.299 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/1.563, allocations: 4 kB / 1.299 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008038/1.564, allocations: 238.9 kB / 1.299 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/1.569, allocations: 0.8073 MB / 1.3 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/1.574, allocations: 3.384 MB / 1.303 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005192/1.58, allocations: 0.5752 MB / 1.304 GB, free: 3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007985/1.58, allocations: 123.9 kB / 1.304 GB, free: 2.879 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.intGai.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,$PRE.HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,$PRE.HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,$PRE.HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,$PRE.HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (300): * Single equations (assignments): 299 * 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 {(2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002889/1.583, allocations: 0.946 MB / 1.305 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.584, allocations: 272.6 kB / 1.305 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/1.599, allocations: 5.631 MB / 1.31 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/1.599, allocations: 28 kB / 1.31 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.599, allocations: 12 kB / 1.31 GB, free: 11.92 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.32e-05/1.599, allocations: 11.95 kB / 1.31 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/1.605, allocations: 3.687 MB / 1.314 GB, free: 8.156 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.578e-05/1.605, allocations: 0 / 1.314 GB, free: 8.156 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003832/1.609, allocations: 0.741 MB / 1.315 GB, free: 7.414 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008653/1.609, allocations: 268.6 kB / 1.315 GB, free: 7.145 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004461/1.61, allocations: 83.92 kB / 1.315 GB, free: 7.062 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005875/1.616, allocations: 5.237 MB / 1.32 GB, free: 1.527 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.616, allocations: 0 / 1.32 GB, free: 1.527 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/1.635, allocations: 8.033 MB / 1.328 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/1.637, allocations: 0.8288 MB / 1.329 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007693/1.638, allocations: 71.83 kB / 1.329 GB, free: 8.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003413/1.641, allocations: 443.3 kB / 1.329 GB, free: 8.047 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/1.642, allocations: 206 kB / 1.33 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003343/1.642, allocations: 103.9 kB / 1.33 GB, free: 7.742 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.003008/1.645, allocations: 1.769 MB / 1.331 GB, free: 5.961 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.11e-07/1.645, allocations: 4 kB / 1.331 GB, free: 5.957 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003364/1.648, allocations: 1.071 MB / 1.332 GB, free: 4.883 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (thermalZoneOneElement.volAir.dynBal.U,thermalZoneOneElement.volAir.dynBal.m,thermalZoneOneElement.extWallRC.thermCapExt[1].T) * Number of discrete variables: 21 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDirTil[2].incAng.decAng.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 11 (intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,16,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.002728/1.651, allocations: 1.038 MB / 1.333 GB, free: 4.184 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02105/1.672, allocations: 8.537 MB / 1.342 GB, free: 11.6 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/1.672, allocations: 0 / 1.342 GB, free: 11.6 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.006237/1.679, allocations: 2.769 MB / 1.345 GB, free: 8.805 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/1.682, allocations: 0.6969 MB / 1.345 GB, free: 8.137 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/1.699, allocations: 9.393 MB / 1.354 GB, free: 14.7 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/1.702, allocations: 2.382 MB / 1.357 GB, free: 12.29 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002306/1.704, allocations: 319.2 kB / 1.357 GB, free: 11.98 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/1.704, allocations: 0 / 1.357 GB, free: 11.98 MB / 1.061 GB Notification: Performance of Templates: time 0.1139/1.818, allocations: 84.47 MB / 1.439 GB, free: 7.582 MB / 1.139 GB make -j1 -f Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.makefile (rm -f Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.pipe ; mkfifo Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.pipe ; head -c 1048576 < Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.pipe >> ../files/Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.sim & ./Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomOneElement.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches