Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001445, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.509/2.509, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.91 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6764/0.6778, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.005241/0.6831, allocations: 2.935 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002438/0.6855, allocations: 1.11 MB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.6862, allocations: 19.88 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.6866, allocations: 71.2 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003624/0.687, allocations: 79.19 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009979/0.688, allocations: 350.8 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.6889, allocations: 0.7107 MB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007854/0.6897, allocations: 484.4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.6901, allocations: 251.1 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003711/0.6904, allocations: 258.7 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.6906, allocations: 72 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.6908, allocations: 72 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.6909, allocations: 143.6 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003101/0.6912, allocations: 270.6 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008017/0.692, allocations: 0.7262 MB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.6921, allocations: 0 / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.124e-06/0.6921, allocations: 4 kB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.749e-05/0.6921, allocations: 0 / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002038/0.6942, allocations: 0.8752 MB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.6942, allocations: 11.98 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.6944, allocations: 56.28 kB / 1.026 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.6951, allocations: 444.5 kB / 1.026 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.6952, allocations: 41.38 kB / 1.026 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.104e-05/0.6953, allocations: 52.36 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.6964, allocations: 0.5393 MB / 1.027 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.6964, allocations: 0 / 1.027 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.898e-05/0.6965, allocations: 19.98 kB / 1.027 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.6965, allocations: 15.94 kB / 1.027 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.6975, allocations: 403.6 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.7, allocations: 1.852 MB / 1.029 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009582/0.701, allocations: 363 kB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004064/0.7014, allocations: 175.5 kB / 1.029 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.7015, allocations: 7.938 kB / 1.029 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000619/0.7021, allocations: 242.9 kB / 1.03 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 1.843e-06/0.7021, allocations: 4 kB / 1.03 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001314/0.7034, allocations: 480.7 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.7035, allocations: 89.23 kB / 1.03 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004363/0.704, allocations: 409.4 kB / 1.03 GB, free: 4.652 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.704, allocations: 41.7 kB / 1.031 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.7042, allocations: 244.3 kB / 1.031 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.7043, allocations: 102.6 kB / 1.031 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.7045, allocations: 106.1 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.7046, allocations: 354.8 kB / 1.031 GB, free: 3.793 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.7051, allocations: 161 kB / 1.031 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.7055, allocations: 261.8 kB / 1.032 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008349/0.7064, allocations: 411.4 kB / 1.032 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.7064, allocations: 0 / 1.032 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001106/0.7075, allocations: 0.5223 MB / 1.033 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.487e-05/0.7076, allocations: 33.7 kB / 1.033 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.7076, allocations: 7.984 kB / 1.033 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.7076, allocations: 4 kB / 1.033 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.7079, allocations: 71.89 kB / 1.033 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.7079, allocations: 7.938 kB / 1.033 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.7083, allocations: 79.64 kB / 1.033 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.7084, allocations: 27.92 kB / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.7086, allocations: 201.7 kB / 1.033 GB, free: 1.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.7087, allocations: 43.47 kB / 1.033 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000951/0.7097, allocations: 393.4 kB / 1.033 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.7097, allocations: 4 kB / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.7097, allocations: 0 / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.7097, allocations: 3.984 kB / 1.033 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.7113, allocations: 0.9515 MB / 1.034 GB, free: 464 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.7113, allocations: 4 kB / 1.034 GB, free: 460 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.7115, allocations: 51.89 kB / 1.034 GB, free: 408 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.7116, allocations: 4.031 kB / 1.034 GB, free: 404 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.7116, allocations: 8 kB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.7116, allocations: 0 / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.7116, allocations: 4 kB / 1.034 GB, free: 392 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.7129, allocations: 0.6521 MB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.7131, allocations: 148.5 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/0.7132, allocations: 12 kB / 1.035 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/0.7135, allocations: 36.02 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.7137, allocations: 51.88 kB / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.7137, allocations: 11.98 kB / 1.035 GB, free: 15.43 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002742/0.714, allocations: 263.2 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.714, allocations: 0 / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004131/0.7144, allocations: 95.73 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001806/0.7146, allocations: 130.8 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001094/0.7157, allocations: 462.8 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.7157, allocations: 0.8125 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004635/0.7162, allocations: 192.2 kB / 1.036 GB, free: 14.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.7167, allocations: 81.45 kB / 1.036 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.7182, allocations: 0.7553 MB / 1.037 GB, free: 13.43 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.7187, allocations: 0.8273 MB / 1.038 GB, free: 12.57 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002247/0.7189, allocations: 59.42 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.719, allocations: 39.42 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.719, allocations: 0 / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of Templates: time 0.01098/0.73, allocations: 4.968 MB / 1.043 GB, free: 7.559 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches