Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, 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.001718/0.001718, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.432/1.432, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.777/2.777, allocations: 472.6 MB / 0.7451 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 67.08 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3168, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002672/0.3195, allocations: 1.328 MB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007848/0.3203, allocations: 349.2 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.912e-05/0.3204, allocations: 4 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.716e-05/0.3205, allocations: 3.938 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.633e-05/0.3205, allocations: 3.984 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.3209, allocations: 95.7 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000127/0.3211, allocations: 51.92 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.449e-05/0.3211, allocations: 8 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.659e-05/0.3212, allocations: 23.91 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.555e-05/0.3212, allocations: 15.92 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3212, allocations: 4 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.3215, allocations: 87.84 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.3215, allocations: 27.92 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.773e-05/0.3216, allocations: 43.73 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.3218, allocations: 155.5 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3218, allocations: 4 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3218, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.3218, allocations: 4 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000495/0.3223, allocations: 0.5125 MB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3224, allocations: 8.031 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.3225, allocations: 12.84 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.3226, allocations: 180.2 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.3226, allocations: 4.375 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.3226, allocations: 4.375 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.3229, allocations: 252 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3229, allocations: 192 / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.323, allocations: 3.938 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.323, allocations: 0 / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.3231, allocations: 144 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.3233, allocations: 189.5 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.3237, allocations: 0.534 MB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.324, allocations: 0.5284 MB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.324, allocations: 4 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003921/0.3244, allocations: 395.7 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=39): time 1.393e-06/0.3244, allocations: 0 / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39): time 0.0007522/0.3252, allocations: 0.6928 MB / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.3253, allocations: 105.1 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.66e-05/0.3254, allocations: 101.8 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.3254, allocations: 25.7 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.011e-05/0.3254, allocations: 84.83 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.3255, allocations: 75 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.3255, allocations: 33.7 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3256, allocations: 330.8 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.974e-05/0.3257, allocations: 79.98 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.313e-05/0.3258, allocations: 83.97 kB / 1.075 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.3261, allocations: 353.4 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3261, allocations: 3.984 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003162/0.3264, allocations: 340 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.475e-05/0.3265, allocations: 85.58 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3265, allocations: 0 / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3265, allocations: 0 / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.96e-05/0.3266, allocations: 7.938 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.3266, allocations: 0 / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.335e-05/0.3267, allocations: 23.69 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.3267, allocations: 8 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 (occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0002311/0.327, allocations: 270.2 kB / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.327, allocations: 19.84 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.836e-06/0.327, allocations: 9.219 kB / 1.076 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.327, allocations: 0 / 1.076 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.327, allocations: 4 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.327, allocations: 192 / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.3272, allocations: 245.3 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3272, allocations: 4 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.763e-06/0.3272, allocations: 3.984 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3272, allocations: 3.938 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.3273, allocations: 15.98 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3273, allocations: 0 / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3273, allocations: 0 / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3284, allocations: 1.283 MB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.172e-05/0.3284, allocations: 92.94 kB / 1.077 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.389e-05/0.3285, allocations: 79.89 kB / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.166e-05/0.3286, allocations: 8 kB / 1.077 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.3287, allocations: 11.92 kB / 1.077 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3287, allocations: 12 kB / 1.077 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.482e-05/0.3287, allocations: 83.27 kB / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3287, allocations: 4.031 kB / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002857/0.329, allocations: 68 kB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0004109/0.3294, allocations: 248.5 kB / 1.078 GB, free: 308 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001459/0.3309, allocations: 1.964 MB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3309, allocations: 0 / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.3323, allocations: 2.015 MB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.3325, allocations: 24.12 kB / 1.082 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.3331, allocations: 347.2 kB / 1.082 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3334, allocations: 0.7127 MB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.519e-05/0.3334, allocations: 0 / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.63e-05/0.3335, allocations: 7.438 kB / 1.083 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3335, allocations: 3.938 kB / 1.083 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of Templates: time 0.005479/0.3389, allocations: 2.631 MB / 1.085 GB, free: 8.527 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1)