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.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.2/4.2, allocations: 433.2 MB / 440.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.384e-05/2.384e-05, allocations: 4.625 kB / 0.5325 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2283, allocations: 98.74 MB / 0.6289 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2643/0.4927, allocations: 125.7 MB / 0.7517 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.4931, allocations: 79.95 kB / 0.7518 GB, free: 11.12 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.01442/0.5075, allocations: 2.908 MB / 0.7546 GB, free: 8.207 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5075, allocations: 0 / 0.7546 GB, free: 8.207 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.5076, allocations: 4 kB / 0.7546 GB, free: 8.203 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.0006961/0.5083, allocations: 413.5 kB / 0.755 GB, free: 7.75 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5083, allocations: 8.031 kB / 0.755 GB, free: 7.742 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.5084, allocations: 7.953 kB / 0.755 GB, free: 7.734 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.5085, allocations: 174.9 kB / 0.7552 GB, free: 7.523 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.5086, allocations: 8 kB / 0.7552 GB, free: 7.516 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.07e-05/0.5086, allocations: 0 / 0.7552 GB, free: 7.516 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001181/0.5087, allocations: 27.94 kB / 0.7552 GB, free: 7.488 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.5089, allocations: 61.67 kB / 0.7553 GB, free: 7.422 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.5089, allocations: 0 / 0.7553 GB, free: 7.422 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.509, allocations: 0 / 0.7553 GB, free: 7.422 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.509, allocations: 3.953 kB / 0.7553 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008447/0.5098, allocations: 289.4 kB / 0.7556 GB, free: 7.098 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.5099, allocations: 34.58 kB / 0.7556 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.198e-05/0.51, allocations: 33.52 kB / 0.7556 GB, free: 7.02 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.5101, allocations: 8.047 kB / 0.7556 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.5103, allocations: 71.27 kB / 0.7557 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.295e-06/0.5103, allocations: 0 / 0.7557 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003768/0.5107, allocations: 97.53 kB / 0.7558 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.5107, allocations: 59.41 kB / 0.7558 GB, free: 6.758 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.5109, allocations: 105 kB / 0.7559 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.5109, allocations: 33.7 kB / 0.756 GB, free: 6.609 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.511, allocations: 88.23 kB / 0.7561 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.511, allocations: 7.906 kB / 0.7561 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-06/0.5111, allocations: 0 / 0.7561 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.5112, allocations: 318.8 kB / 0.7564 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.739e-05/0.5113, allocations: 20 kB / 0.7564 GB, free: 6.168 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.48e-05/0.5114, allocations: 46.5 kB / 0.7564 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.5115, allocations: 20 kB / 0.7565 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5115, allocations: 0 / 0.7565 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002571/0.5118, allocations: 93.5 kB / 0.7565 GB, free: 5.996 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.5118, allocations: 4 kB / 0.7566 GB, free: 5.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.5119, allocations: 4.156 kB / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.5119, allocations: 0 / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.5121, allocations: 16.05 kB / 0.7566 GB, free: 5.973 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.5121, allocations: 11.94 kB / 0.7566 GB, free: 5.961 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.5122, allocations: 11.84 kB / 0.7566 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.5122, allocations: 7.984 kB / 0.7566 GB, free: 5.941 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.0001016/0.5123, allocations: 108.9 kB / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002475/0.5126, allocations: 89.67 kB / 0.7568 GB, free: 5.734 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.5126, allocations: 7.906 kB / 0.7568 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.5127, allocations: 8.625 kB / 0.7568 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.5127, allocations: 7.953 kB / 0.7568 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5127, allocations: 0 / 0.7568 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.5127, allocations: 3.938 kB / 0.7568 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.5132, allocations: 339 kB / 0.7571 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.5133, allocations: 0 / 0.7571 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.416e-05/0.5133, allocations: 4 kB / 0.7571 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5134, allocations: 0 / 0.7571 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.5134, allocations: 11.94 kB / 0.7572 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5134, allocations: 4 kB / 0.7572 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5134, allocations: 0 / 0.7572 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.5137, allocations: 187.4 kB / 0.7573 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.131e-05/0.5138, allocations: 85.02 kB / 0.7574 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.5139, allocations: 0 / 0.7574 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.514, allocations: 13.62 kB / 0.7574 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.5141, allocations: 4 kB / 0.7574 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.5141, allocations: 11.98 kB / 0.7574 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.144e-05/0.5142, allocations: 91.22 kB / 0.7575 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.61e-07/0.5142, allocations: 3.938 kB / 0.7575 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005002/0.5147, allocations: 51.92 kB / 0.7576 GB, free: 4.836 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.001029/0.5158, allocations: 0.7979 MB / 0.7584 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.516, allocations: 59.91 kB / 0.7584 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.516, allocations: 0 / 0.7584 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.561e-05/0.5161, allocations: 24 kB / 0.7584 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.5164, allocations: 7.953 kB / 0.7585 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006253/0.517, allocations: 150.2 kB / 0.7586 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.5173, allocations: 0.6962 MB / 0.7593 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.167e-05/0.5174, allocations: 4.188 kB / 0.7593 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.467e-05/0.5175, allocations: 19.44 kB / 0.7593 GB, free: 3 MB / 0.6355 GB Notification: Performance of SimCode: time 9.42e-07/0.5175, allocations: 0 / 0.7593 GB, free: 3 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04081/0.5583, allocations: 2.171 MB / 0.7614 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003485/0.5587, allocations: 191.7 kB / 0.7616 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.18, allocations: 0 / 0.7616 GB, free: 0.6445 MB / 0.6355 GB