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.001467/0.001467, allocations: 104.1 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.001633/0.001633, allocations: 190.3 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.184/2.184, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.31 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2447, allocations: 140.4 MB / 0.9511 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002412/0.2472, allocations: 1.205 MB / 0.9523 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007068/0.2479, allocations: 396.8 kB / 0.9527 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.499e-05/0.248, allocations: 0 / 0.9527 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.356e-05/0.248, allocations: 3.938 kB / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.117e-05/0.2481, allocations: 4 kB / 0.9527 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.2486, allocations: 91.66 kB / 0.9527 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.648e-05/0.2486, allocations: 15.97 kB / 0.9528 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.235e-05/0.2487, allocations: 4 kB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.183e-05/0.2487, allocations: 4 kB / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.08e-05/0.2487, allocations: 11.92 kB / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.2488, allocations: 4 kB / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.2489, allocations: 91.84 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.456e-05/0.249, allocations: 0 / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.249, allocations: 11.98 kB / 0.9529 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.2492, allocations: 83.81 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2492, allocations: 0 / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2492, allocations: 4 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.2492, allocations: 0 / 0.953 GB, free: 6.094 MB / 0.7325 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.000432/0.2496, allocations: 369.1 kB / 0.9533 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.2497, allocations: 12.03 kB / 0.9533 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.2497, allocations: 0.9375 kB / 0.9533 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.234e-05/0.2498, allocations: 168.3 kB / 0.9535 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.2498, allocations: 12.38 kB / 0.9535 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.2499, allocations: 4.312 kB / 0.9535 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.441e-05/0.25, allocations: 38.19 kB / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.25, allocations: 192 / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.25, allocations: 7.938 kB / 0.9536 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.25, allocations: 0 / 0.9536 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.942e-05/0.25, allocations: 7.984 kB / 0.9536 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.2502, allocations: 149.7 kB / 0.9537 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.025e-05/0.2502, allocations: 30.58 kB / 0.9537 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.233e-05/0.2503, allocations: 16.94 kB / 0.9538 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.2503, allocations: 7.984 kB / 0.9538 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001098/0.2504, allocations: 59.34 kB / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.223e-06/0.2504, allocations: 0 / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0001789/0.2506, allocations: 69.52 kB / 0.9539 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.2507, allocations: 59.41 kB / 0.9539 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.19e-05/0.2507, allocations: 93.86 kB / 0.954 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.2507, allocations: 33.69 kB / 0.9541 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.2508, allocations: 80.14 kB / 0.9541 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.2508, allocations: 3.906 kB / 0.9541 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.2508, allocations: 21.72 kB / 0.9542 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.545e-05/0.2509, allocations: 322.8 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.251, allocations: 4.125 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.788e-05/0.251, allocations: 39.42 kB / 0.9545 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.862e-05/0.2511, allocations: 47.36 kB / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2511, allocations: 0 / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.647e-05/0.2512, allocations: 69.62 kB / 0.9546 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2512, allocations: 7.938 kB / 0.9546 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2512, allocations: 4 kB / 0.9546 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2512, allocations: 0 / 0.9546 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.421e-05/0.2513, allocations: 11.98 kB / 0.9546 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2513, allocations: 3.938 kB / 0.9546 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.116e-05/0.2514, allocations: 0 / 0.9546 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.2514, allocations: 4 kB / 0.9547 GB, free: 4.113 MB / 0.7325 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.868e-05/0.2514, allocations: 117.4 kB / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.2515, allocations: 11.84 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.2515, allocations: 3.5 kB / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2515, allocations: 3.938 kB / 0.9548 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2515, allocations: 0 / 0.9548 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2515, allocations: 7.938 kB / 0.9548 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.2516, allocations: 153.6 kB / 0.9549 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2516, allocations: 4 kB / 0.9549 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.249e-05/0.2517, allocations: 3.984 kB / 0.9549 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2517, allocations: 3.938 kB / 0.9549 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.2517, allocations: 0 / 0.9549 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2517, allocations: 8 kB / 0.955 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2517, allocations: 0 / 0.955 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001332/0.2518, allocations: 85.05 kB / 0.955 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.2519, allocations: 77.11 kB / 0.9551 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.2519, allocations: 3.938 kB / 0.9551 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.019e-05/0.2519, allocations: 0 / 0.9551 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.2519, allocations: 4 kB / 0.9551 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.252, allocations: 288 / 0.9551 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.93e-05/0.252, allocations: 91.27 kB / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.252, allocations: 0 / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002292/0.2522, allocations: 24 kB / 0.9552 GB, free: 3.426 MB / 0.7325 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.0002832/0.2525, allocations: 166.4 kB / 0.9554 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.2526, allocations: 32.02 kB / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2527, allocations: 0 / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.391e-05/0.2527, allocations: 15.98 kB / 0.9554 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.2528, allocations: 4.969 kB / 0.9554 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002015/0.253, allocations: 105 kB / 0.9555 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2533, allocations: 0.6805 MB / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.95e-05/0.2533, allocations: 0 / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.83e-05/0.2533, allocations: 15.56 kB / 0.9562 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.2533, allocations: 7.938 kB / 0.9562 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of Templates: time 0.003051/0.2564, allocations: 0.9452 MB / 0.9571 GB, free: 1.418 MB / 0.7325 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 -s gbode -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/jenkins1/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