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.001618/0.001618, allocations: 108 kB / 15.6 MB, free: 128 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.002021/0.002021, allocations: 197.3 kB / 16.53 MB, free: 6.668 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.2 MB, free: 4.395 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.391/2.391, allocations: 390.2 MB / 0.6646 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7582/0.7595, allocations: 140.4 MB / 0.9496 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002096/0.7616, allocations: 1.208 MB / 0.9507 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006656/0.7623, allocations: 377.1 kB / 0.9511 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.7624, allocations: 1.375 kB / 0.9511 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.138e-05/0.7624, allocations: 0 / 0.9511 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.448e-05/0.7624, allocations: 3.938 kB / 0.9511 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.7629, allocations: 97.45 kB / 0.9512 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.983e-05/0.763, allocations: 15.89 kB / 0.9512 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.197e-05/0.763, allocations: 1.75 kB / 0.9512 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.405e-05/0.7631, allocations: 3.344 kB / 0.9512 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.911e-05/0.7631, allocations: 19.48 kB / 0.9512 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.7631, allocations: 3.938 kB / 0.9512 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.7633, allocations: 89.53 kB / 0.9513 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.7633, allocations: 5.328 kB / 0.9513 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.873e-05/0.7634, allocations: 10.73 kB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.7635, allocations: 72.75 kB / 0.9514 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.7635, allocations: 9.266 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7636, allocations: 0 / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.7636, allocations: 0 / 0.9514 GB, free: 7.77 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.0004141/0.764, allocations: 371.8 kB / 0.9518 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.764, allocations: 8.875 kB / 0.9518 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.7641, allocations: 7.125 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.566e-05/0.7641, allocations: 167.4 kB / 0.952 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.7642, allocations: 1.469 kB / 0.952 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.7642, allocations: 2.625 kB / 0.952 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.421e-05/0.7643, allocations: 34.62 kB / 0.952 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.7643, allocations: 1.344 kB / 0.952 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.7643, allocations: 7.875 kB / 0.952 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.7643, allocations: 4 kB / 0.952 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.11e-05/0.7644, allocations: 15.39 kB / 0.952 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.7645, allocations: 156.9 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.161e-05/0.7646, allocations: 22.33 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.7646, allocations: 18.31 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.7646, allocations: 0 / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/0.7647, allocations: 60.88 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.372e-06/0.7647, allocations: 0 / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002159/0.765, allocations: 75.47 kB / 0.9523 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.765, allocations: 52.72 kB / 0.9524 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.433e-05/0.7651, allocations: 101.4 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.7651, allocations: 27.05 kB / 0.9525 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.247e-05/0.7651, allocations: 84.12 kB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.7651, allocations: 17.27 kB / 0.9526 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.7652, allocations: 20.16 kB / 0.9526 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.56e-05/0.7652, allocations: 314.8 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.932e-05/0.7652, allocations: 9.453 kB / 0.9529 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.771e-05/0.7653, allocations: 30.31 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.497e-05/0.7653, allocations: 51.95 kB / 0.953 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.7653, allocations: 1 kB / 0.953 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.818e-05/0.7654, allocations: 68.03 kB / 0.9531 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.7655, allocations: 11.81 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.7655, allocations: 160 / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.7655, allocations: 1.656 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.35e-05/0.7655, allocations: 10.11 kB / 0.9531 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.7656, allocations: 9.766 kB / 0.9531 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.394e-05/0.7656, allocations: 1.531 kB / 0.9531 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.7656, allocations: 3.062 kB / 0.9531 GB, free: 5.949 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.054e-05/0.7657, allocations: 112.1 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.7657, allocations: 9.031 kB / 0.9532 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.946e-05/0.7657, allocations: 4.656 kB / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.7657, allocations: 1.719 kB / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.7657, allocations: 0 / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7657, allocations: 3.938 kB / 0.9532 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.111e-05/0.7658, allocations: 156.9 kB / 0.9534 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.7658, allocations: 0 / 0.9534 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.13e-05/0.7658, allocations: 9.922 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7658, allocations: 4.969 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.7658, allocations: 1.062 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.7658, allocations: 0 / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7659, allocations: 0.625 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.766, allocations: 85.36 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.766, allocations: 82.77 kB / 0.9536 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.766, allocations: 3.938 kB / 0.9536 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.955e-05/0.766, allocations: 1.25 kB / 0.9536 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.766, allocations: 1.406 kB / 0.9536 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/0.7661, allocations: 5.438 kB / 0.9536 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.69e-05/0.7661, allocations: 80.61 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7661, allocations: 1.406 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002358/0.7663, allocations: 24.19 kB / 0.9537 GB, free: 5.332 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.0002869/0.7666, allocations: 168.3 kB / 0.9538 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001345/0.7668, allocations: 29.2 kB / 0.9539 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7668, allocations: 0 / 0.9539 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/0.7668, allocations: 15.58 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.767, allocations: 1.156 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002082/0.7672, allocations: 105.6 kB / 0.954 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.216e-05/0.7673, allocations: 0.6818 MB / 0.9547 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.869e-05/0.7673, allocations: 1.406 kB / 0.9547 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.406e-05/0.7673, allocations: 9 kB / 0.9547 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7673, allocations: 1.594 kB / 0.9547 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of Templates: time 0.003148/0.7705, allocations: 0.9599 MB / 0.9556 GB, free: 3.859 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