Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.489/4.489, allocations: 433.2 MB / 440.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.899e-05, allocations: 4.719 kB / 0.5325 GB, free: 12.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2288, allocations: 98.74 MB / 0.6289 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2353/0.4641, allocations: 125.7 MB / 0.7517 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.4645, allocations: 83.94 kB / 0.7518 GB, free: 11.16 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.01412/0.4786, allocations: 2.912 MB / 0.7546 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4786, allocations: 0 / 0.7546 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.4787, allocations: 0 / 0.7546 GB, free: 8.242 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007439/0.4794, allocations: 416 kB / 0.755 GB, free: 7.785 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.4795, allocations: 8.031 kB / 0.755 GB, free: 7.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.4795, allocations: 11.95 kB / 0.755 GB, free: 7.766 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4797, allocations: 178.8 kB / 0.7552 GB, free: 7.551 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.4798, allocations: 0 / 0.7552 GB, free: 7.551 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.4798, allocations: 7.984 kB / 0.7552 GB, free: 7.543 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001137/0.4799, allocations: 23.94 kB / 0.7552 GB, free: 7.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.4801, allocations: 57.67 kB / 0.7553 GB, free: 7.457 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4801, allocations: 0 / 0.7553 GB, free: 7.457 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.4801, allocations: 0 / 0.7553 GB, free: 7.457 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4801, allocations: 3.953 kB / 0.7553 GB, free: 7.453 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.481, allocations: 289.4 kB / 0.7556 GB, free: 7.133 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.4811, allocations: 38.58 kB / 0.7556 GB, free: 7.086 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.984e-05/0.4812, allocations: 25.58 kB / 0.7556 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.4812, allocations: 4 kB / 0.7556 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.4814, allocations: 71.33 kB / 0.7557 GB, free: 6.973 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/0.4814, allocations: 3.938 kB / 0.7557 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000364/0.4818, allocations: 101.5 kB / 0.7558 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.4818, allocations: 51.41 kB / 0.7558 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.482, allocations: 109 kB / 0.7559 GB, free: 6.688 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.482, allocations: 25.7 kB / 0.756 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/0.4821, allocations: 92.23 kB / 0.7561 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.4821, allocations: 15.91 kB / 0.7561 GB, free: 6.543 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.4821, allocations: 0 / 0.7561 GB, free: 6.543 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4823, allocations: 314.8 kB / 0.7564 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.447e-05/0.4824, allocations: 20 kB / 0.7564 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.598e-05/0.4824, allocations: 42.58 kB / 0.7564 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4826, allocations: 23.98 kB / 0.7565 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4826, allocations: 0 / 0.7565 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002872/0.4829, allocations: 93.52 kB / 0.7565 GB, free: 6.035 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.4829, allocations: 4 kB / 0.7566 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4829, allocations: 0 / 0.7566 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4829, allocations: 4 kB / 0.7566 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.4831, allocations: 11.98 kB / 0.7566 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.4831, allocations: 3.953 kB / 0.7566 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.4833, allocations: 15.84 kB / 0.7566 GB, free: 5.996 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.4833, allocations: 3.984 kB / 0.7566 GB, free: 5.992 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.4834, allocations: 113.7 kB / 0.7567 GB, free: 5.875 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002561/0.4837, allocations: 93.61 kB / 0.7568 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.4837, allocations: 7.906 kB / 0.7568 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.018e-05/0.4838, allocations: 8.625 kB / 0.7568 GB, free: 5.758 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4838, allocations: 3.953 kB / 0.7568 GB, free: 5.754 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4838, allocations: 4 kB / 0.7568 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.4838, allocations: 0 / 0.7568 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005229/0.4843, allocations: 343 kB / 0.7571 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.4844, allocations: 3.938 kB / 0.7571 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/0.4845, allocations: 4 kB / 0.7571 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/0.4845, allocations: 4 kB / 0.7571 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.4845, allocations: 7.938 kB / 0.7572 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4845, allocations: 4 kB / 0.7572 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4845, allocations: 0 / 0.7572 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.4848, allocations: 191.7 kB / 0.7573 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.4849, allocations: 85.02 kB / 0.7574 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.4849, allocations: 4 kB / 0.7574 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.4851, allocations: 13.62 kB / 0.7574 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.4852, allocations: 0 / 0.7574 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.4852, allocations: 7.984 kB / 0.7574 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.903e-05/0.4853, allocations: 91.28 kB / 0.7575 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.41e-07/0.4853, allocations: 0 / 0.7575 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000494/0.4858, allocations: 47.92 kB / 0.7576 GB, free: 4.883 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/0.4869, allocations: 0.8017 MB / 0.7584 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002391/0.4871, allocations: 59.92 kB / 0.7584 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4872, allocations: 0 / 0.7584 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.058e-05/0.4873, allocations: 27.94 kB / 0.7584 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.4875, allocations: 11.94 kB / 0.7585 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006476/0.4882, allocations: 138.1 kB / 0.7586 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4885, allocations: 0.7041 MB / 0.7593 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.272e-05/0.4886, allocations: 8.312 kB / 0.7593 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.4887, allocations: 11.44 kB / 0.7593 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of SimCode: time 1.132e-06/0.4887, allocations: 0 / 0.7593 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.5278, allocations: 2.191 MB / 0.7614 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/0.5282, allocations: 189.7 kB / 0.7616 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/2.985, allocations: 4.031 kB / 0.7616 GB, free: 0.668 MB / 0.6355 GB