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.0008848/0.0008848, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.006559/0.006559, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.455/1.455, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.727/2.727, allocations: 443.3 MB / 0.7175 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003668, allocations: 8.188 kB / 0.8796 GB, free: 41.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3285, allocations: 155.2 MB / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001447/0.33, allocations: 0.9399 MB / 1.032 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008569/0.3308, allocations: 383.4 kB / 1.032 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.3309, allocations: 0 / 1.032 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.79e-05/0.3309, allocations: 0 / 1.032 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.551e-05/0.3309, allocations: 0 / 1.032 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.3314, allocations: 75.81 kB / 1.032 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.024e-05/0.3315, allocations: 19.97 kB / 1.032 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.666e-05/0.3315, allocations: 0 / 1.032 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.467e-05/0.3316, allocations: 7.938 kB / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.98e-05/0.3316, allocations: 11.98 kB / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.195e-05/0.3316, allocations: 0 / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.3318, allocations: 91.84 kB / 1.033 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.558e-05/0.3318, allocations: 4 kB / 1.033 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.407e-05/0.3319, allocations: 37.62 kB / 1.033 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.3321, allocations: 83.81 kB / 1.033 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3321, allocations: 0 / 1.033 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.306e-06/0.3321, allocations: 4 kB / 1.033 GB, free: 2.688 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3321, allocations: 0 / 1.033 GB, free: 2.688 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.0004782/0.3326, allocations: 369.4 kB / 1.033 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3326, allocations: 12.03 kB / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.3327, allocations: 0.9375 kB / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.3328, allocations: 164.4 kB / 1.033 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.3328, allocations: 4.375 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.3329, allocations: 8.312 kB / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.333, allocations: 38.19 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.333, allocations: 4.188 kB / 1.033 GB, free: 2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.333, allocations: 3.938 kB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.333, allocations: 0 / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.191e-05/0.3331, allocations: 12 kB / 1.033 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.3332, allocations: 149.7 kB / 1.033 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.533e-05/0.3333, allocations: 30.61 kB / 1.033 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.642e-05/0.3334, allocations: 12.86 kB / 1.033 GB, free: 1.734 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.3334, allocations: 3.938 kB / 1.033 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.3336, allocations: 59.48 kB / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.472e-06/0.3336, allocations: 0 / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002181/0.3338, allocations: 73.52 kB / 1.034 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.3339, allocations: 51.41 kB / 1.034 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.508e-05/0.3339, allocations: 97.86 kB / 1.034 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.334, allocations: 29.64 kB / 1.034 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.334, allocations: 80.14 kB / 1.034 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.334, allocations: 11.83 kB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.3341, allocations: 21.84 kB / 1.034 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3342, allocations: 310.8 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.054e-05/0.3342, allocations: 12 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.656e-05/0.3343, allocations: 31.42 kB / 1.034 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.41e-05/0.3344, allocations: 47.38 kB / 1.034 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3344, allocations: 0 / 1.034 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001034/0.3345, allocations: 65.8 kB / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3345, allocations: 13.66 kB / 1.034 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3345, allocations: 48 / 1.034 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3345, allocations: 3.984 kB / 1.034 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.467e-05/0.3346, allocations: 12 kB / 1.034 GB, free: 0.7344 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3346, allocations: 3.938 kB / 1.034 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.3346, allocations: 8.094 kB / 1.034 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.3347, allocations: 0 / 1.034 GB, free: 0.7227 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.764e-05/0.3347, allocations: 121.7 kB / 1.034 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.3348, allocations: 11.84 kB / 1.034 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.3348, allocations: 7.5 kB / 1.034 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3348, allocations: 0 / 1.034 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3348, allocations: 0 / 1.034 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3348, allocations: 0 / 1.034 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.335, allocations: 153.7 kB / 1.035 GB, free: 376 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.335, allocations: 0 / 1.035 GB, free: 376 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.047e-05/0.335, allocations: 4 kB / 1.035 GB, free: 372 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.335, allocations: 7.938 kB / 1.035 GB, free: 364 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.335, allocations: 7.938 kB / 1.035 GB, free: 356 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.335, allocations: 0 / 1.035 GB, free: 356 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.335, allocations: 3.984 kB / 1.035 GB, free: 352 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.3352, allocations: 81.06 kB / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/0.3352, allocations: 77.11 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.3352, allocations: 11.92 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.938e-05/0.3353, allocations: 4 kB / 1.035 GB, free: 140 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.3353, allocations: 0 / 1.035 GB, free: 140 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.3353, allocations: 4 kB / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.619e-05/0.3354, allocations: 79.28 kB / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.733e-06/0.3354, allocations: 0 / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002426/0.3356, allocations: 35.92 kB / 1.035 GB, free: 20 kB / 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.0003767/0.336, allocations: 153.9 kB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001094/0.3361, allocations: 35.91 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3361, allocations: 0 / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 3.569e-05/0.3362, allocations: 8 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.3363, allocations: 4 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002588/0.3366, allocations: 102.8 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.3369, allocations: 0.6848 MB / 1.036 GB, free: 14.99 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.109e-05/0.3369, allocations: 4 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.75e-05/0.3369, allocations: 7.438 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.3369, allocations: 3.938 kB / 1.036 GB, free: 14.97 MB / 0.795 GB Notification: Performance of Templates: time 0.003408/0.3403, allocations: 0.9372 MB / 1.037 GB, free: 14.04 MB / 0.795 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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