Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_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.00151/0.00151, allocations: 104.9 kB / 16.35 MB, free: 5.824 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.001731/0.001731, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.4/2.4, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 68.12 kB / 0.8707 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2626, allocations: 151.6 MB / 1.019 GB, free: 9.895 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002143/0.2648, allocations: 1.203 MB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007041/0.2655, allocations: 390.7 kB / 1.02 GB, free: 8.297 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.875e-05/0.2655, allocations: 0 / 1.02 GB, free: 8.297 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.621e-05/0.2656, allocations: 3.938 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.2656, allocations: 4 kB / 1.02 GB, free: 8.289 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.266, allocations: 95.66 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.228e-05/0.2661, allocations: 15.98 kB / 1.02 GB, free: 8.18 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.2661, allocations: 7.984 kB / 1.02 GB, free: 8.172 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.913e-05/0.2662, allocations: 3.984 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.486e-05/0.2662, allocations: 11.94 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.2662, allocations: 0 / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.2664, allocations: 87.84 kB / 1.021 GB, free: 8.07 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.588e-05/0.2664, allocations: 7.984 kB / 1.021 GB, free: 8.062 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.584e-05/0.2664, allocations: 7.938 kB / 1.021 GB, free: 8.055 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.2666, allocations: 87.88 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2666, allocations: 0 / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2666, allocations: 0 / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.2666, allocations: 0 / 1.021 GB, free: 7.969 MB / 0.795 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.0004211/0.267, allocations: 377.1 kB / 1.021 GB, free: 7.543 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.2671, allocations: 8.922 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/0.2671, allocations: 4.938 kB / 1.021 GB, free: 7.531 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.211e-05/0.2672, allocations: 164.3 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2672, allocations: 4.375 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.2672, allocations: 8.375 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.002e-05/0.2673, allocations: 38.19 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.2674, allocations: 192 / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.2674, allocations: 7.922 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2674, allocations: 0 / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.725e-05/0.2674, allocations: 4 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.2676, allocations: 159.1 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.124e-05/0.2676, allocations: 34.61 kB / 1.021 GB, free: 7.02 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.902e-05/0.2677, allocations: 12.86 kB / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 9.056e-06/0.2677, allocations: 0 / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/0.2678, allocations: 59.42 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.2678, allocations: 0 / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0001781/0.268, allocations: 73.52 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.268, allocations: 51.41 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/0.2681, allocations: 101.8 kB / 1.022 GB, free: 6.684 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.2681, allocations: 25.7 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.2682, allocations: 88.14 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.2682, allocations: 7.844 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.2682, allocations: 21.7 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2683, allocations: 318.8 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.775e-05/0.2684, allocations: 4 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.426e-05/0.2684, allocations: 39.55 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.426e-05/0.2685, allocations: 43.38 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2685, allocations: 0 / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.399e-05/0.2686, allocations: 69.66 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2686, allocations: 10.75 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2686, allocations: 7.922 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.2686, allocations: 4 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.504e-05/0.2687, allocations: 4 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2687, allocations: 7.938 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.48e-05/0.2687, allocations: 3.906 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.2687, allocations: 4 kB / 1.022 GB, free: 5.984 MB / 0.795 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 6.552e-05/0.2688, allocations: 114.7 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.2688, allocations: 12 kB / 1.022 GB, free: 5.852 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.2689, allocations: 7.484 kB / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.2689, allocations: 0 / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2689, allocations: 0 / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2689, allocations: 0 / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.269, allocations: 161.6 kB / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.269, allocations: 0 / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.33e-05/0.269, allocations: 4 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.269, allocations: 3.938 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.269, allocations: 0 / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.269, allocations: 0 / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.269, allocations: 7.984 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.2692, allocations: 85.05 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.2692, allocations: 81.11 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.2692, allocations: 3.938 kB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.888e-05/0.2693, allocations: 3.938 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.878e-05/0.2693, allocations: 3.984 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.2693, allocations: 4 kB / 1.023 GB, free: 5.402 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.32e-05/0.2693, allocations: 79.28 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2693, allocations: 0 / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002451/0.2696, allocations: 28 kB / 1.023 GB, free: 5.297 MB / 0.795 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.0002641/0.2699, allocations: 152 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 9.726e-05/0.27, allocations: 36.14 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.27, allocations: 0 / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.27, allocations: 15.97 kB / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.2701, allocations: 6.812 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002805/0.2704, allocations: 96.97 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.2707, allocations: 0.6768 MB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.681e-05/0.2707, allocations: 7.938 kB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.307e-05/0.2708, allocations: 7.438 kB / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.2708, allocations: 4.062 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of Templates: time 0.002979/0.2737, allocations: 0.9497 MB / 1.025 GB, free: 3.305 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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