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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001724/0.001724, allocations: 100.1 kB / 15.88 MB, free: 12 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.00203/0.00203, allocations: 200 kB / 16.79 MB, free: 6.828 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.517/1.517, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.2 MB / 0.6649 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 60.08 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7362/0.7385, allocations: 140.4 MB / 0.9496 GB, free: 9.414 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002231/0.7407, allocations: 1.272 MB / 0.9508 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007204/0.7415, allocations: 390.5 kB / 0.9512 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.7415, allocations: 3.938 kB / 0.9512 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.871e-05/0.7415, allocations: 0 / 0.9512 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.572e-05/0.7416, allocations: 3.938 kB / 0.9512 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004167/0.742, allocations: 72.45 kB / 0.9513 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.686e-05/0.7421, allocations: 16.73 kB / 0.9513 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.7421, allocations: 1.469 kB / 0.9513 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.914e-05/0.7422, allocations: 3 kB / 0.9513 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.566e-05/0.7422, allocations: 17.84 kB / 0.9513 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.7422, allocations: 5.719 kB / 0.9513 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.7424, allocations: 90.88 kB / 0.9514 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.7424, allocations: 5.281 kB / 0.9514 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.122e-05/0.7424, allocations: 3.75 kB / 0.9514 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.7426, allocations: 65.44 kB / 0.9515 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.7426, allocations: 0 / 0.9515 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7426, allocations: 0 / 0.9515 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.7426, allocations: 0 / 0.9515 GB, free: 7.945 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.0004116/0.743, allocations: 371.1 kB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.7431, allocations: 9.344 kB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.7431, allocations: 6.469 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.904e-05/0.7432, allocations: 163.8 kB / 0.952 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.7432, allocations: 5.609 kB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.7432, allocations: 3.344 kB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.428e-05/0.7433, allocations: 37.91 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.7433, allocations: 1.062 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.7433, allocations: 3.938 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.7434, allocations: 0.6562 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.024e-05/0.7434, allocations: 7.875 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.7435, allocations: 156.6 kB / 0.9522 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.479e-05/0.7436, allocations: 30.92 kB / 0.9522 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.84e-05/0.7436, allocations: 13.03 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.898e-06/0.7436, allocations: 0 / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/0.7437, allocations: 59.86 kB / 0.9523 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.7438, allocations: 5.656 kB / 0.9523 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001997/0.744, allocations: 67.23 kB / 0.9524 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.744, allocations: 53.03 kB / 0.9524 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.585e-05/0.7441, allocations: 100.3 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.7441, allocations: 26.89 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.664e-05/0.7441, allocations: 81.2 kB / 0.9526 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.7441, allocations: 16.95 kB / 0.9526 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.7441, allocations: 23.42 kB / 0.9527 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.7442, allocations: 320.3 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.996e-05/0.7442, allocations: 12.05 kB / 0.953 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.791e-05/0.7442, allocations: 31.44 kB / 0.953 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.063e-05/0.7443, allocations: 44.53 kB / 0.953 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7443, allocations: 0 / 0.953 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.638e-05/0.7444, allocations: 71.7 kB / 0.9531 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.7444, allocations: 10.59 kB / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.7444, allocations: 0 / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.7444, allocations: 1.531 kB / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.497e-05/0.7445, allocations: 11.09 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.7445, allocations: 1.562 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.432e-05/0.7446, allocations: 1.375 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.7446, allocations: 11.19 kB / 0.9531 GB, free: 6.133 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.087e-05/0.7446, allocations: 115.1 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.7446, allocations: 9.344 kB / 0.9533 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.028e-05/0.7447, allocations: 8.75 kB / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.7447, allocations: 0 / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.7447, allocations: 1.438 kB / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.7447, allocations: 0 / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.979e-05/0.7448, allocations: 149.7 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.7448, allocations: 0 / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/0.7448, allocations: 9.281 kB / 0.9534 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.7448, allocations: 5.406 kB / 0.9534 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.7448, allocations: 0 / 0.9534 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.7448, allocations: 5.234 kB / 0.9534 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.7448, allocations: 0 / 0.9534 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.912e-05/0.7449, allocations: 77.72 kB / 0.9535 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.496e-05/0.7449, allocations: 78.48 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.745, allocations: 12.2 kB / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.134e-05/0.745, allocations: 5.375 kB / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.745, allocations: 5.312 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.745, allocations: 1.375 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.679e-05/0.7451, allocations: 76.66 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7451, allocations: 0 / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002593/0.7453, allocations: 33.58 kB / 0.9537 GB, free: 5.512 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.0003059/0.7456, allocations: 164.8 kB / 0.9539 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001025/0.7457, allocations: 29.11 kB / 0.9539 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7458, allocations: 0 / 0.9539 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.715e-05/0.7458, allocations: 11.53 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.7459, allocations: 3.109 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.7461, allocations: 135.4 kB / 0.954 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.7463, allocations: 0.6774 MB / 0.9547 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.476e-05/0.7463, allocations: 12.88 kB / 0.9547 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.7463, allocations: 1.438 kB / 0.9547 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of Templates: time 0.00271/0.749, allocations: 1.141 MB / 0.9558 GB, free: 3.938 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches