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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001153/0.001153, allocations: 99.94 kB / 15.05 MB, free: 1.113 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.001625, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.548/2.548, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00041/0.0004101, allocations: 11.98 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7236/0.724, allocations: 153.6 MB / 1.021 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001342/0.7254, allocations: 0.9254 MB / 1.022 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006963/0.7261, allocations: 347.4 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.335e-05/0.7262, allocations: 4 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.137e-05/0.7262, allocations: 0 / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.067e-05/0.7263, allocations: 0 / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.7267, allocations: 79.66 kB / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.7268, allocations: 7.984 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.7268, allocations: 4 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.207e-05/0.7269, allocations: 11.98 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.74e-05/0.7269, allocations: 7.984 kB / 1.022 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.7269, allocations: 4 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.7271, allocations: 63.88 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.7271, allocations: 3.984 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.074e-05/0.7272, allocations: 33.7 kB / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000161/0.7273, allocations: 55.91 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.7273, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7273, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.7274, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 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.0004609/0.7278, allocations: 373 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.7279, allocations: 11.98 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.7279, allocations: 0 / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.728, allocations: 169 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.7281, allocations: 7.875 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.7281, allocations: 4 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.7282, allocations: 37.64 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.7282, allocations: 3.984 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.7282, allocations: 8 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.7283, allocations: 0 / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.106e-05/0.7283, allocations: 4 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.7285, allocations: 153.7 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.345e-05/0.7285, allocations: 34.55 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.7286, allocations: 0 / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.7287, allocations: 59.45 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.7287, allocations: 0 / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0001958/0.7289, allocations: 61.67 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.729, allocations: 55.41 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.661e-05/0.7291, allocations: 101.8 kB / 1.023 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.7291, allocations: 25.7 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.7291, allocations: 88.05 kB / 1.023 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.7292, allocations: 7.844 kB / 1.023 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.7292, allocations: 4.125 kB / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.7293, allocations: 318.8 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.978e-05/0.7293, allocations: 7.984 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.695e-05/0.7293, allocations: 31.44 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.706e-05/0.7294, allocations: 11.98 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.7294, allocations: 4 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001092/0.7295, allocations: 65.62 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.7295, allocations: 9.812 kB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.7295, allocations: 11.89 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.7296, allocations: 0 / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.824e-05/0.7296, allocations: 8 kB / 1.024 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.7296, allocations: 0 / 1.024 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.654e-05/0.7297, allocations: 0 / 1.024 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.7297, allocations: 7.984 kB / 1.024 GB, free: 13.64 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 ($PRE.y,y,$PRE.curSeed,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.186e-05/0.7298, allocations: 119.7 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.328e-05/0.7298, allocations: 3.906 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.259e-05/0.7298, allocations: 3.5 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.7298, allocations: 3.953 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7299, allocations: 0 / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.7299, allocations: 0 / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.73, allocations: 157.7 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.73, allocations: 4 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.516e-05/0.73, allocations: 3.938 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.73, allocations: 0 / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.73, allocations: 11.92 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.73, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7301, allocations: 7.953 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.7302, allocations: 81.34 kB / 1.024 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.7302, allocations: 81.09 kB / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.7303, allocations: 0 / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.973e-05/0.7303, allocations: 0 / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.7303, allocations: 11.95 kB / 1.024 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.7303, allocations: 0 / 1.024 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.148e-05/0.7304, allocations: 79.28 kB / 1.024 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7304, allocations: 0 / 1.024 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002639/0.7306, allocations: 31.98 kB / 1.024 GB, free: 12.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003265/0.731, allocations: 163.7 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.882e-05/0.7311, allocations: 27.98 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.7311, allocations: 0 / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.822e-05/0.7311, allocations: 11.94 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.273e-05/0.7312, allocations: 4.562 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002508/0.7315, allocations: 108.9 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.7317, allocations: 0.6809 MB / 1.025 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.527e-05/0.7318, allocations: 12.17 kB / 1.025 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.666e-05/0.7318, allocations: 11.44 kB / 1.025 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of SimCode: time 4.91e-07/0.7318, allocations: 3.938 kB / 1.025 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of Templates: time 0.003543/0.7353, allocations: 0.9173 MB / 1.026 GB, free: 10.96 MB / 0.7794 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","../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