Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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.008026/0.008026, allocations: 104.7 kB / 15.74 MB, free: 5.988 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.001624/0.001624, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.384/1.384, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.615/2.615, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 72.11 kB / 1.054 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9051/0.9063, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002072/0.9084, allocations: 1.207 MB / 1.209 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007256/0.9091, allocations: 384.7 kB / 1.209 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.585e-05/0.9092, allocations: 7.938 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.9092, allocations: 0 / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.603e-05/0.9092, allocations: 0 / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005106/0.9098, allocations: 91.66 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.71e-05/0.9098, allocations: 12 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.839e-05/0.9099, allocations: 7.969 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.071e-05/0.9099, allocations: 7.938 kB / 1.209 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.905e-05/0.9099, allocations: 11.98 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.91, allocations: 0 / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.9101, allocations: 91.84 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.9102, allocations: 4 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.9102, allocations: 7.938 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.9104, allocations: 87.81 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.9104, allocations: 4 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.734e-06/0.9104, allocations: 0 / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.9104, allocations: 3.938 kB / 1.21 GB, free: 11.73 MB / 0.9356 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.000478/0.9109, allocations: 365.3 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.9109, allocations: 12.03 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.911, allocations: 0.9375 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.9111, allocations: 172.1 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.9111, allocations: 12.31 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.9112, allocations: 4.359 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.9113, allocations: 34.25 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.9113, allocations: 4.188 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.9113, allocations: 3.938 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.9113, allocations: 0 / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.207e-05/0.9113, allocations: 8 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.9115, allocations: 149.7 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.406e-05/0.9116, allocations: 34.55 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.596e-05/0.9116, allocations: 20.84 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.9116, allocations: 0 / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001174/0.9118, allocations: 55.48 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.433e-06/0.9118, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.000204/0.912, allocations: 69.62 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.912, allocations: 59.33 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.22e-05/0.9121, allocations: 97.8 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.9121, allocations: 29.7 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.121e-05/0.9122, allocations: 80.14 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.9122, allocations: 3.906 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.9122, allocations: 25.7 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.9123, allocations: 319 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.877e-05/0.9124, allocations: 4 kB / 1.211 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.87e-05/0.9124, allocations: 35.42 kB / 1.211 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.554e-05/0.9125, allocations: 43.38 kB / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.9125, allocations: 4 kB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.635e-05/0.9126, allocations: 73.52 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.9126, allocations: 7.938 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.9126, allocations: 4 kB / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.9126, allocations: 0 / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.679e-05/0.9127, allocations: 11.94 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.9127, allocations: 0 / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.178e-05/0.9127, allocations: 0 / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.9128, allocations: 4 kB / 1.211 GB, free: 9.766 MB / 0.9356 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 7.716e-05/0.9128, allocations: 121.9 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.9129, allocations: 3.938 kB / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.9129, allocations: 3.5 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.9129, allocations: 4 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.9129, allocations: 7.938 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.9129, allocations: 0 / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.913, allocations: 159.5 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.913, allocations: 0 / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-05/0.913, allocations: 0 / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.9131, allocations: 7.938 kB / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.9131, allocations: 4 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.9131, allocations: 0 / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.9131, allocations: 0 / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.9132, allocations: 92.95 kB / 1.212 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.9133, allocations: 77.11 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.9133, allocations: 7.922 kB / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.071e-05/0.9133, allocations: 288 / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.9133, allocations: 11.94 kB / 1.212 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.9133, allocations: 0 / 1.212 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.574e-05/0.9134, allocations: 83.28 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9134, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002351/0.9136, allocations: 27.98 kB / 1.212 GB, free: 9.066 MB / 0.9356 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.0003223/0.914, allocations: 163 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001087/0.9141, allocations: 27.92 kB / 1.212 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.9141, allocations: 0 / 1.212 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.514e-05/0.9141, allocations: 12 kB / 1.212 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.9143, allocations: 3.938 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002322/0.9145, allocations: 112.8 kB / 1.212 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.9148, allocations: 0.6768 MB / 1.213 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.382e-05/0.9148, allocations: 4.188 kB / 1.213 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.808e-05/0.9148, allocations: 11.44 kB / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.9148, allocations: 0 / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of Templates: time 0.003585/0.9184, allocations: 0.9685 MB / 1.214 GB, free: 7.047 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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