Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_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.00142/0.001421, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001719/0.001719, allocations: 198.4 kB / 16.14 MB, free: 6.711 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.403/1.403, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.413/2.413, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.84 kB / 0.8118 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6731/0.6744, allocations: 140.4 MB / 0.9489 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.00212/0.6765, allocations: 1.265 MB / 0.9501 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006811/0.6772, allocations: 397.2 kB / 0.9505 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.6773, allocations: 5.5 kB / 0.9505 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.6773, allocations: 0 / 0.9505 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.025e-05/0.6774, allocations: 0 / 0.9505 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000413/0.6778, allocations: 72.98 kB / 0.9506 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.44e-05/0.6778, allocations: 15.66 kB / 0.9506 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.6779, allocations: 1.969 kB / 0.9506 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.996e-05/0.6779, allocations: 6.672 kB / 0.9506 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.798e-05/0.6779, allocations: 14.52 kB / 0.9506 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.678, allocations: 1.344 kB / 0.9506 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.6782, allocations: 86.28 kB / 0.9507 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.6782, allocations: 13.3 kB / 0.9507 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.6783, allocations: 8.156 kB / 0.9507 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.6785, allocations: 80.8 kB / 0.9508 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.6785, allocations: 0 / 0.9508 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6785, allocations: 1.531 kB / 0.9508 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.6785, allocations: 0 / 0.9508 GB, free: 7.707 MB / 0.7169 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.0004992/0.679, allocations: 377.1 kB / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.6791, allocations: 8.312 kB / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.6791, allocations: 3 kB / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.574e-05/0.6792, allocations: 175.7 kB / 0.9514 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.6792, allocations: 6.219 kB / 0.9514 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.6793, allocations: 2.062 kB / 0.9514 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.6794, allocations: 34.88 kB / 0.9514 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.6794, allocations: 192 / 0.9514 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.6794, allocations: 7.922 kB / 0.9514 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.6794, allocations: 1.031 kB / 0.9514 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.592e-05/0.6795, allocations: 2.719 kB / 0.9514 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.6796, allocations: 154 kB / 0.9516 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.844e-05/0.6797, allocations: 38.2 kB / 0.9516 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.6798, allocations: 13.05 kB / 0.9516 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.6798, allocations: 1.344 kB / 0.9516 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/0.68, allocations: 55.03 kB / 0.9517 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.222e-06/0.68, allocations: 0 / 0.9517 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001985/0.6802, allocations: 76.45 kB / 0.9517 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.6802, allocations: 54.16 kB / 0.9518 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.918e-05/0.6803, allocations: 100.4 kB / 0.9519 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.584e-06/0.6803, allocations: 25.7 kB / 0.9519 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.817e-05/0.6803, allocations: 85.48 kB / 0.952 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.6803, allocations: 9.156 kB / 0.952 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.6804, allocations: 23.14 kB / 0.952 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.6804, allocations: 316.3 kB / 0.9523 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.85e-05/0.6804, allocations: 8.094 kB / 0.9523 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.873e-05/0.6805, allocations: 34.3 kB / 0.9524 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.756e-05/0.6805, allocations: 45.31 kB / 0.9524 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.6805, allocations: 0 / 0.9524 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.943e-05/0.6806, allocations: 72.98 kB / 0.9525 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.6807, allocations: 9.438 kB / 0.9525 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.6807, allocations: 9.297 kB / 0.9525 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.6807, allocations: 1.375 kB / 0.9525 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.253e-05/0.6808, allocations: 9.438 kB / 0.9525 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.6808, allocations: 1.375 kB / 0.9525 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.6808, allocations: 1.375 kB / 0.9525 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.6808, allocations: 6.688 kB / 0.9525 GB, free: 5.887 MB / 0.7169 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 5.85e-05/0.6809, allocations: 116.7 kB / 0.9526 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.6809, allocations: 9.219 kB / 0.9526 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.343e-05/0.6809, allocations: 8.641 kB / 0.9526 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6809, allocations: 0 / 0.9526 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6809, allocations: 1.156 kB / 0.9526 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.681, allocations: 0 / 0.9526 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.475e-05/0.681, allocations: 153.1 kB / 0.9528 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.681, allocations: 1.031 kB / 0.9528 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.247e-05/0.6811, allocations: 1.031 kB / 0.9528 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.6811, allocations: 8.969 kB / 0.9528 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.6811, allocations: 5.094 kB / 0.9528 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.6811, allocations: 0 / 0.9528 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6811, allocations: 1.25 kB / 0.9528 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.6812, allocations: 81.77 kB / 0.9529 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.6812, allocations: 77.11 kB / 0.9529 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.6813, allocations: 5.094 kB / 0.953 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.027e-05/0.6813, allocations: 0 / 0.953 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/0.6813, allocations: 6.734 kB / 0.953 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.6813, allocations: 5.438 kB / 0.953 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.77e-05/0.6813, allocations: 76.66 kB / 0.953 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6813, allocations: 0 / 0.953 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002543/0.6816, allocations: 29.31 kB / 0.9531 GB, free: 5.273 MB / 0.7169 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.0003177/0.6819, allocations: 166.9 kB / 0.9532 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001091/0.682, allocations: 32.58 kB / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.6821, allocations: 0 / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.436e-05/0.6821, allocations: 15.83 kB / 0.9533 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.6822, allocations: 6.969 kB / 0.9533 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002156/0.6825, allocations: 108.6 kB / 0.9534 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.227e-05/0.6826, allocations: 0.6774 MB / 0.954 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.133e-05/0.6826, allocations: 6.25 kB / 0.954 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.478e-05/0.6826, allocations: 9.156 kB / 0.9541 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of SimCode: time 6.31e-07/0.6826, allocations: 0 / 0.9541 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of Templates: time 0.003148/0.6858, allocations: 0.9356 MB / 0.955 GB, free: 3.805 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:seed,t0,time,y