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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001076/0.001075, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001124/0.001124, allocations: 177.3 kB / 15.95 MB, free: 216 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.44/1.44, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.3 MB / 0.6653 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.0003971, allocations: 15.98 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8459/0.8463, allocations: 142.3 MB / 0.9535 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001193/0.8475, allocations: 0.9211 MB / 0.9544 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006624/0.8482, allocations: 358.3 kB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.8482, allocations: 0 / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.284e-05/0.8483, allocations: 0 / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.522e-05/0.8483, allocations: 3.984 kB / 0.9547 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004406/0.8487, allocations: 75.8 kB / 0.9548 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.343e-05/0.8488, allocations: 11.83 kB / 0.9548 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.031e-05/0.8489, allocations: 1.406 kB / 0.9548 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.214e-05/0.8489, allocations: 6.453 kB / 0.9548 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.816e-05/0.8489, allocations: 6.375 kB / 0.9548 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.8489, allocations: 1.094 kB / 0.9548 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.8491, allocations: 72.86 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.8491, allocations: 1.219 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.8492, allocations: 32.16 kB / 0.9549 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.8493, allocations: 56.77 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.8493, allocations: 4 kB / 0.955 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8493, allocations: 0 / 0.955 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.8493, allocations: 0 / 0.955 GB, free: 6.945 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.0003817/0.8497, allocations: 369.4 kB / 0.9554 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.8498, allocations: 9.125 kB / 0.9554 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.235e-05/0.8498, allocations: 5.078 kB / 0.9554 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.438e-05/0.8499, allocations: 166.3 kB / 0.9555 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.8499, allocations: 0.8125 kB / 0.9555 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.8499, allocations: 2.031 kB / 0.9555 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.495e-05/0.85, allocations: 38.56 kB / 0.9556 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.85, allocations: 5.219 kB / 0.9556 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.8501, allocations: 3.984 kB / 0.9556 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.8501, allocations: 0 / 0.9556 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.888e-05/0.8501, allocations: 11.45 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.8502, allocations: 153.3 kB / 0.9557 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.255e-05/0.8503, allocations: 26.81 kB / 0.9558 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.8503, allocations: 9.234 kB / 0.9558 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.8505, allocations: 51.56 kB / 0.9558 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.153e-06/0.8505, allocations: 0 / 0.9558 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001969/0.8507, allocations: 64.33 kB / 0.9559 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.8507, allocations: 60.25 kB / 0.9559 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.72e-05/0.8508, allocations: 93.05 kB / 0.956 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.8508, allocations: 30.98 kB / 0.9561 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.141e-05/0.8508, allocations: 84.14 kB / 0.9561 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.8509, allocations: 22.09 kB / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-06/0.8509, allocations: 0 / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.466e-05/0.8509, allocations: 320 kB / 0.9565 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/0.8509, allocations: 8.594 kB / 0.9565 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.613e-05/0.851, allocations: 38.56 kB / 0.9565 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.814e-05/0.851, allocations: 14.03 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.851, allocations: 1.188 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.733e-05/0.8511, allocations: 72.05 kB / 0.9566 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.8511, allocations: 4.875 kB / 0.9566 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.8511, allocations: 5.391 kB / 0.9566 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.8512, allocations: 1.594 kB / 0.9566 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.855e-05/0.8512, allocations: 5.969 kB / 0.9566 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.8512, allocations: 5.406 kB / 0.9566 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.8513, allocations: 5.375 kB / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.8513, allocations: 3.656 kB / 0.9566 GB, free: 5.203 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 ($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 6.573e-05/0.8514, allocations: 116.8 kB / 0.9567 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-06/0.8514, allocations: 0 / 0.9567 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.8514, allocations: 8.922 kB / 0.9567 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.8514, allocations: 0 / 0.9567 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.8514, allocations: 1.438 kB / 0.9567 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.8514, allocations: 0 / 0.9567 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.44e-05/0.8515, allocations: 172.3 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.8515, allocations: 1.5 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.074e-05/0.8515, allocations: 1.312 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.8515, allocations: 0 / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.8516, allocations: 1.625 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.8516, allocations: 0 / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.8516, allocations: 1.438 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.8517, allocations: 84.31 kB / 0.957 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.8517, allocations: 78.33 kB / 0.9571 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.8517, allocations: 5.438 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.91e-05/0.8517, allocations: 0 / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.762e-05/0.8518, allocations: 5.453 kB / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.8518, allocations: 1.281 kB / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.061e-05/0.8518, allocations: 77.19 kB / 0.9572 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8518, allocations: 0 / 0.9572 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000253/0.8521, allocations: 29.16 kB / 0.9572 GB, free: 4.59 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 (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.0003266/0.8524, allocations: 171.5 kB / 0.9573 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.992e-05/0.8525, allocations: 25.39 kB / 0.9574 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8525, allocations: 0 / 0.9574 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.103e-05/0.8526, allocations: 15.05 kB / 0.9574 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.19e-05/0.8527, allocations: 10.3 kB / 0.9574 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002378/0.8529, allocations: 118.6 kB / 0.9575 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.853, allocations: 0.6777 MB / 0.9582 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.015e-05/0.853, allocations: 2.375 kB / 0.9582 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.447e-05/0.8531, allocations: 9.844 kB / 0.9582 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8531, allocations: 0 / 0.9582 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of Templates: time 0.003247/0.8563, allocations: 0.9243 MB / 0.9591 GB, free: 3.117 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","../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