Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002188/0.002188, allocations: 109.8 kB / 16.41 MB, free: 6.496 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.003569/0.003569, allocations: 185.7 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.545/2.545, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.677/3.677, allocations: 437 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002821, allocations: 63.89 kB / 1.019 GB, free: 9.496 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.65/1.652, allocations: 151.6 MB / 1.167 GB, free: 3.887 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.004394/1.657, allocations: 1.204 MB / 1.168 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001438/1.658, allocations: 389.2 kB / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.072e-05/1.658, allocations: 0 / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.874e-05/1.659, allocations: 0 / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.781e-05/1.659, allocations: 7.938 kB / 1.169 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001011/1.66, allocations: 87.7 kB / 1.169 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001351/1.66, allocations: 19.92 kB / 1.169 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.945e-05/1.66, allocations: 4 kB / 1.169 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.854e-05/1.66, allocations: 11.98 kB / 1.169 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.134e-05/1.66, allocations: 3.938 kB / 1.169 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/1.66, allocations: 0 / 1.169 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003634/1.66, allocations: 91.91 kB / 1.169 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.43e-05/1.66, allocations: 7.969 kB / 1.169 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.871e-05/1.661, allocations: 19.88 kB / 1.169 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003552/1.661, allocations: 76.33 kB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/1.661, allocations: 0 / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.937e-06/1.661, allocations: 0 / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.016e-05/1.661, allocations: 0 / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.001059/1.662, allocations: 384.9 kB / 1.17 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 8.52e-05/1.662, allocations: 8.922 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/1.662, allocations: 4.938 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/1.663, allocations: 160.4 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/1.663, allocations: 4.375 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/1.663, allocations: 4.375 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/1.663, allocations: 34.25 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/1.663, allocations: 192 / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/1.663, allocations: 7.938 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/1.663, allocations: 3.984 kB / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.877e-05/1.663, allocations: 7.938 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002921/1.663, allocations: 153.7 kB / 1.17 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/1.663, allocations: 30.58 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.105e-05/1.664, allocations: 12.98 kB / 1.17 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/1.664, allocations: 0 / 1.17 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/1.664, allocations: 55.41 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 2.445e-06/1.664, allocations: 0 / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of matching and sorting (n=4): time 0.0003673/1.664, allocations: 77.5 kB / 1.17 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/1.664, allocations: 63.39 kB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/1.665, allocations: 97.84 kB / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/1.665, allocations: 25.7 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.371e-05/1.665, allocations: 84.14 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/1.665, allocations: 7.953 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/1.665, allocations: 17.72 kB / 1.17 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002017/1.665, allocations: 318.8 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.059e-05/1.665, allocations: 4.125 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.281e-05/1.665, allocations: 39.42 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/1.665, allocations: 47.55 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/1.665, allocations: 0 / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002045/1.666, allocations: 73.56 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/1.666, allocations: 7.938 kB / 1.171 GB, free: 20 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/1.666, allocations: 3.938 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/1.666, allocations: 4 kB / 1.171 GB, free: 12 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/1.666, allocations: 7.984 kB / 1.171 GB, free: 4 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/1.666, allocations: 4 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.966e-05/1.666, allocations: 4.141 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/1.666, allocations: 7.938 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (y,$PRE.y,curSeed,$PRE.curSeed,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001395/1.666, allocations: 113.9 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/1.666, allocations: 15.69 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/1.666, allocations: 3.5 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/1.666, allocations: 3.984 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/1.666, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/1.666, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/1.666, allocations: 153.7 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.666, allocations: 0 / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/1.666, allocations: 4 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/1.666, allocations: 3.938 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/1.667, allocations: 0 / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/1.667, allocations: 4 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.667, allocations: 0 / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/1.667, allocations: 85.11 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/1.667, allocations: 89 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/1.667, allocations: 0 / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.51e-05/1.667, allocations: 0 / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/1.667, allocations: 7.984 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/1.667, allocations: 4 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.883e-05/1.667, allocations: 83.22 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.01e-07/1.667, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004994/1.668, allocations: 31.94 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006046/1.668, allocations: 157.3 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002135/1.668, allocations: 36.02 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.668, allocations: 0 / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.662e-05/1.669, allocations: 15.98 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/1.669, allocations: 4.5 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004171/1.669, allocations: 126.6 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/1.67, allocations: 0.6768 MB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/1.67, allocations: 11.44 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of SimCode: time 4.21e-07/1.67, allocations: 0 / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of Templates: time 0.005574/1.675, allocations: 1.142 MB / 1.174 GB, free: 13.07 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches