Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004705/0.004705, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001342/0.001342, allocations: 196 kB / 16.67 MB, free: 6.355 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.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.345/2.345, allocations: 437.1 MB / 0.7106 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 67.89 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2349, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.00445/0.2393, allocations: 3.924 MB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.2411, allocations: 1.293 MB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.2413, allocations: 19.94 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002752/0.2416, allocations: 134.6 kB / 1.171 GB, free: 1.859 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.2419, allocations: 126.8 kB / 1.172 GB, free: 1.734 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.2424, allocations: 359.5 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0008401/0.2432, allocations: 1.025 MB / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006481/0.2439, allocations: 0.5387 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.2442, allocations: 370.6 kB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.2446, allocations: 406 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.2447, allocations: 120 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.2448, allocations: 120 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.245, allocations: 235.3 kB / 1.175 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.2453, allocations: 429.8 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.2464, allocations: 1.3 MB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2464, allocations: 0 / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.402e-06/0.2464, allocations: 0 / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.2464, allocations: 0 / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.002046/0.2485, allocations: 1.25 MB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2485, allocations: 8.031 kB / 1.178 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.2486, allocations: 122.6 kB / 1.178 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.2488, allocations: 100.3 kB / 1.178 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.2494, allocations: 0.5349 MB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.2494, allocations: 58.38 kB / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.473e-05/0.2495, allocations: 76.38 kB / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.251, allocations: 0.8112 MB / 1.179 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.251, allocations: 4 kB / 1.179 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.2511, allocations: 31.98 kB / 1.179 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.2511, allocations: 16 kB / 1.179 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.2527, allocations: 0.6753 MB / 1.18 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.2557, allocations: 2.458 MB / 1.182 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.2573, allocations: 0.7082 MB / 1.183 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.2581, allocations: 356.1 kB / 1.183 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.2582, allocations: 8.422 kB / 1.183 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008431/0.259, allocations: 373.2 kB / 1.184 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=51): time 1.683e-06/0.259, allocations: 0 / 1.184 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=51): time 0.002211/0.2612, allocations: 0.8538 MB / 1.184 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.2613, allocations: 138 kB / 1.185 GB, free: 4.008 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000616/0.2619, allocations: 0.5694 MB / 1.185 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.262, allocations: 41.69 kB / 1.185 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.2623, allocations: 368.8 kB / 1.186 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.2624, allocations: 174.5 kB / 1.186 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.2626, allocations: 118.2 kB / 1.186 GB, free: 2.727 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.2627, allocations: 374.7 kB / 1.186 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007375/0.2635, allocations: 282.9 kB / 1.186 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008249/0.2643, allocations: 413.1 kB / 1.187 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.2658, allocations: 0.6546 MB / 1.188 GB, free: 0.9219 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2658, allocations: 4 kB / 1.188 GB, free: 0.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001746/0.2676, allocations: 0.8102 MB / 1.188 GB, free: 88 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.2676, allocations: 63.39 kB / 1.188 GB, free: 12 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2676, allocations: 4 kB / 1.188 GB, free: 8 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2676, allocations: 4 kB / 1.188 GB, free: 4 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000583/0.2682, allocations: 147.9 kB / 1.189 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.2683, allocations: 8 kB / 1.189 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/0.2688, allocations: 119.4 kB / 1.189 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.2688, allocations: 35.86 kB / 1.189 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007218/0.2695, allocations: 381.2 kB / 1.189 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006507/0.2702, allocations: 361.2 kB / 1.189 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00116/0.2714, allocations: 0.5726 MB / 1.19 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.2714, allocations: 4 kB / 1.19 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.0014/0.2728, allocations: 0.7086 MB / 1.191 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.2728, allocations: 71.67 kB / 1.191 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.2728, allocations: 4 kB / 1.191 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.789e-06/0.2729, allocations: 4 kB / 1.191 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.2733, allocations: 119.8 kB / 1.191 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2733, allocations: 8 kB / 1.191 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.2738, allocations: 107.6 kB / 1.191 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.2738, allocations: 20 kB / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * 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.0001527/0.274, allocations: 216.6 kB / 1.191 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.783e-05/0.2741, allocations: 63.58 kB / 1.191 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.2757, allocations: 0.6508 MB / 1.192 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2757, allocations: 4 kB / 1.192 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.2757, allocations: 7.938 kB / 1.192 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.2757, allocations: 3.984 kB / 1.192 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/0.2764, allocations: 0.716 MB / 1.193 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2764, allocations: 0 / 1.193 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005164/0.2769, allocations: 123.8 kB / 1.193 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.277, allocations: 0 / 1.193 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/0.277, allocations: 12 kB / 1.193 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.277, allocations: 4 kB / 1.193 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.277, allocations: 4 kB / 1.193 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.2793, allocations: 0.9799 MB / 1.194 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.2794, allocations: 156.5 kB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.623e-05/0.2795, allocations: 15.98 kB / 1.194 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.2799, allocations: 59.92 kB / 1.194 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.28, allocations: 44.38 kB / 1.194 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.2801, allocations: 23.98 kB / 1.194 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004269/0.2805, allocations: 406.8 kB / 1.194 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2805, allocations: 0 / 1.194 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005325/0.281, allocations: 259.2 kB / 1.195 GB, free: 9.414 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00263/0.2837, allocations: 1.537 MB / 1.196 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002321/0.286, allocations: 1.151 MB / 1.197 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.286, allocations: 0 / 1.197 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007656/0.2868, allocations: 314.4 kB / 1.198 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.2873, allocations: 132 kB / 1.198 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008652/0.296, allocations: 5.664 MB / 1.203 GB, free: 392 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.2965, allocations: 0.914 MB / 1.204 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002747/0.2968, allocations: 76.81 kB / 1.204 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.2971, allocations: 263.3 kB / 1.204 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.2971, allocations: 0 / 1.204 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.096/2.393, allocations: 13.46 MB / 1.218 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/15.8, allocations: 8 kB / 1.218 GB, free: 1.855 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)