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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00125/0.00125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001154/0.001154, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.683/2.683, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 0.8685 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7358/0.737, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002924/0.74, allocations: 1.272 MB / 1.018 GB, free: 1.488 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.741, allocations: 390.8 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.741, allocations: 0 / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.621e-05/0.7411, allocations: 0 / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.196e-05/0.7411, allocations: 0 / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.7417, allocations: 79.78 kB / 1.018 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.988e-05/0.7418, allocations: 19.98 kB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.548e-05/0.7418, allocations: 0 / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.631e-05/0.7419, allocations: 4 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.791e-05/0.7419, allocations: 19.86 kB / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.7419, allocations: 0 / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.7422, allocations: 87.84 kB / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.7422, allocations: 4 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.394e-05/0.7422, allocations: 11.92 kB / 1.018 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.7425, allocations: 75.89 kB / 1.018 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.7425, allocations: 0 / 1.018 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7425, allocations: 4 kB / 1.018 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.7425, allocations: 4 kB / 1.019 GB, free: 0.8008 MB / 0.7637 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.0005339/0.743, allocations: 377.1 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7431, allocations: 12.03 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.7431, allocations: 0.9375 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.7433, allocations: 162.4 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.7433, allocations: 8.375 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.7433, allocations: 8.359 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.7434, allocations: 38.23 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.7435, allocations: 4.188 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.7435, allocations: 3.938 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.7435, allocations: 4 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.894e-05/0.7435, allocations: 0 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.7437, allocations: 153.7 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.401e-05/0.7438, allocations: 34.55 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.7438, allocations: 12.86 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.7438, allocations: 8 kB / 1.019 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.744, allocations: 55.48 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.363e-06/0.744, allocations: 0 / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002264/0.7443, allocations: 73.45 kB / 1.019 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.7443, allocations: 55.41 kB / 1.019 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.654e-05/0.7444, allocations: 89.86 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.7444, allocations: 33.83 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.7445, allocations: 84.14 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.7445, allocations: 11.83 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.7445, allocations: 25.7 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.7447, allocations: 314.8 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.15e-05/0.7447, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.52e-05/0.7447, allocations: 35.42 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.251e-05/0.7448, allocations: 47.38 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7448, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001008/0.7449, allocations: 69.55 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.745, allocations: 9.5 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.745, allocations: 4 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.745, allocations: 4.094 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.257e-05/0.7451, allocations: 15.94 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.7451, allocations: 3.938 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.819e-05/0.7451, allocations: 3.906 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.7451, allocations: 4 kB / 1.02 GB, free: 14.81 MB / 0.7794 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 8.082e-05/0.7452, allocations: 117.8 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.7452, allocations: 3.938 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.7453, allocations: 3.5 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.7453, allocations: 4 kB / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.7453, allocations: 0 / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.7453, allocations: 240 / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.7454, allocations: 153.7 kB / 1.02 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.7454, allocations: 0 / 1.02 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-05/0.7454, allocations: 7.938 kB / 1.02 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.7454, allocations: 7.922 kB / 1.02 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.7454, allocations: 0 / 1.02 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7455, allocations: 0 / 1.02 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.7455, allocations: 4 kB / 1.02 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.7456, allocations: 85.11 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.7456, allocations: 81.11 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.7457, allocations: 7.922 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.05e-05/0.7457, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.7457, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.7457, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.216e-05/0.7458, allocations: 75.28 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.51e-07/0.7458, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002551/0.746, allocations: 36.08 kB / 1.021 GB, free: 14.13 MB / 0.7794 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.0003528/0.7464, allocations: 163.3 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001104/0.7465, allocations: 27.98 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.7465, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/0.7466, allocations: 16.06 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.7467, allocations: 8.984 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002393/0.747, allocations: 107.3 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.7472, allocations: 0.677 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.42e-05/0.7472, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.631e-05/0.7472, allocations: 7.438 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.7472, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Templates: time 0.00315/0.7504, allocations: 0.9411 MB / 1.023 GB, free: 12.13 MB / 0.7794 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 -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/jenkins/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