Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005151/0.005157, allocations: 98.98 kB / 15.73 MB, free: 6.012 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.001539/0.001539, allocations: 191 kB / 16.67 MB, free: 5.934 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.738/2.738, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002639/0.002639, allocations: 63.89 kB / 1.065 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6901/0.6928, allocations: 159.1 MB / 1.22 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002169/0.695, allocations: 1.205 MB / 1.221 GB, free: 0.8711 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007596/0.6958, allocations: 378.7 kB / 1.222 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.534e-05/0.6958, allocations: 0 / 1.222 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.695e-05/0.6958, allocations: 3.938 kB / 1.222 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.67e-05/0.6959, allocations: 3.938 kB / 1.222 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.6964, allocations: 107.6 kB / 1.222 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.73e-05/0.6964, allocations: 11.98 kB / 1.222 GB, free: 384 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.271e-05/0.6965, allocations: 0 / 1.222 GB, free: 384 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.985e-05/0.6965, allocations: 8 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.173e-05/0.6965, allocations: 11.92 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.138e-05/0.6965, allocations: 0 / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.6967, allocations: 87.84 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.819e-05/0.6968, allocations: 7.984 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.6968, allocations: 7.938 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.697, allocations: 82.56 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.697, allocations: 4 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.333e-06/0.697, allocations: 0 / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.697, allocations: 0 / 1.222 GB, free: 176 kB / 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.0004901/0.6975, allocations: 381.9 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.6975, allocations: 8.031 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.151e-05/0.6976, allocations: 34.73 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.6976, allocations: 4.938 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.6977, allocations: 168.3 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.6978, allocations: 4.375 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.6978, allocations: 4.375 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.6979, allocations: 38.25 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.6979, allocations: 7.938 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.6979, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.6979, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.424e-05/0.698, allocations: 7.984 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000314/0.6983, allocations: 245 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.115e-05/0.6984, allocations: 42.55 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.359e-05/0.6984, allocations: 24.83 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.6985, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001212/0.6986, allocations: 59.39 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=5): time 1.543e-06/0.6986, allocations: 4 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.0002095/0.6988, allocations: 73.62 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.6989, allocations: 55.41 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.699, allocations: 93.84 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.699, allocations: 25.7 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.203e-05/0.699, allocations: 88.14 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.699, allocations: 11.84 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.6991, allocations: 25.7 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.6992, allocations: 315 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.075e-05/0.6993, allocations: 8 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.944e-05/0.6993, allocations: 39.36 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.88e-05/0.6994, allocations: 47.38 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.6994, allocations: 3.938 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000115/0.6995, allocations: 77.61 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.6995, allocations: 8 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.6996, allocations: 3.938 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.6996, allocations: 0 / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.761e-05/0.6996, allocations: 11.98 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.6996, allocations: 4 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.477e-05/0.6997, allocations: 7.891 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.6997, allocations: 4 kB / 1.224 GB, free: 14.01 MB / 0.9512 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.431e-05/0.6998, allocations: 113.8 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-06/0.6998, allocations: 8.062 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.941e-05/0.6998, allocations: 3.562 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.6998, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6998, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6998, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.7001, allocations: 302.5 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.7001, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.816e-05/0.7002, allocations: 4 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.7002, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.7002, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.7002, allocations: 4.312 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7002, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/0.7004, allocations: 179.4 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.7004, allocations: 77.11 kB / 1.224 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.7005, allocations: 4 kB / 1.224 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.462e-05/0.7005, allocations: 4 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.7005, allocations: 3.984 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.7006, allocations: 8.094 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.719e-05/0.7006, allocations: 75.28 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7006, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002849/0.7009, allocations: 39.8 kB / 1.225 GB, free: 13.1 MB / 0.9512 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,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0007378/0.7016, allocations: 0.768 MB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001165/0.7018, allocations: 31.98 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.7018, allocations: 0 / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.262e-05/0.7018, allocations: 15.94 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.702, allocations: 7.938 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.7032, allocations: 1.253 MB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.7035, allocations: 0.6768 MB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.846e-05/0.7035, allocations: 7.906 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.7035, allocations: 15.44 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.7035, allocations: 0 / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.7257, allocations: 1.902 MB / 1.229 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.777, allocations: 7.797 kB / 1.229 GB, free: 8.418 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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:time,y