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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001197/0.001197, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.0018/0.001801, allocations: 191.1 kB / 16.25 MB, free: 6.586 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.2 MB / 0.6644 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.83 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7734/0.7747, allocations: 140.3 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002244/0.777, allocations: 1.275 MB / 0.9503 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006639/0.7777, allocations: 386.3 kB / 0.9507 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.7777, allocations: 0 / 0.9507 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.7778, allocations: 5.75 kB / 0.9507 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.354e-05/0.7778, allocations: 0 / 0.9507 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.7784, allocations: 82.14 kB / 0.9508 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.7784, allocations: 11.41 kB / 0.9508 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.788e-05/0.7785, allocations: 1.094 kB / 0.9508 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.222e-05/0.7785, allocations: 12.44 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.525e-05/0.7785, allocations: 5.688 kB / 0.9508 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.7785, allocations: 1.562 kB / 0.9508 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001672/0.7787, allocations: 92.38 kB / 0.9509 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.681e-05/0.7787, allocations: 9.578 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.765e-05/0.7788, allocations: 10.88 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.7789, allocations: 81.5 kB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7789, allocations: 3.938 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.779, allocations: 0 / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.779, allocations: 1.375 kB / 0.951 GB, free: 7.652 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.0003994/0.7794, allocations: 370.9 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.7794, allocations: 9.625 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.7795, allocations: 6.25 kB / 0.9514 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.493e-05/0.7795, allocations: 167.7 kB / 0.9515 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.7796, allocations: 1.75 kB / 0.9515 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.7796, allocations: 7.125 kB / 0.9515 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.682e-05/0.7797, allocations: 42.3 kB / 0.9516 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.7797, allocations: 192 / 0.9516 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.7797, allocations: 5.312 kB / 0.9516 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.7797, allocations: 0 / 0.9516 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.999e-05/0.7797, allocations: 2.75 kB / 0.9516 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001177/0.7799, allocations: 153.8 kB / 0.9517 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.29e-05/0.78, allocations: 33.48 kB / 0.9518 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.857e-05/0.78, allocations: 10.36 kB / 0.9518 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.78, allocations: 3.938 kB / 0.9518 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.7801, allocations: 59.72 kB / 0.9518 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.452e-06/0.7802, allocations: 1.375 kB / 0.9518 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001846/0.7803, allocations: 67.62 kB / 0.9519 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.7804, allocations: 56.78 kB / 0.952 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.7804, allocations: 100.5 kB / 0.9521 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.7805, allocations: 31.02 kB / 0.9521 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.927e-05/0.7805, allocations: 84.14 kB / 0.9522 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.7805, allocations: 10.59 kB / 0.9522 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.7806, allocations: 23.2 kB / 0.9522 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.635e-05/0.7806, allocations: 310.8 kB / 0.9525 GB, free: 6 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.667e-05/0.7807, allocations: 13.62 kB / 0.9525 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.027e-05/0.7807, allocations: 34.3 kB / 0.9525 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.627e-05/0.7808, allocations: 39.75 kB / 0.9526 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.7808, allocations: 1.375 kB / 0.9526 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001369/0.7809, allocations: 71.61 kB / 0.9526 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.781, allocations: 9.25 kB / 0.9527 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.781, allocations: 1.531 kB / 0.9527 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.781, allocations: 1.094 kB / 0.9527 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.758e-05/0.7811, allocations: 10.78 kB / 0.9527 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.7811, allocations: 5.344 kB / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.194e-05/0.7812, allocations: 1.312 kB / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.7812, allocations: 2.938 kB / 0.9527 GB, free: 5.848 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 (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 5.835e-05/0.7812, allocations: 116.2 kB / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/0.7813, allocations: 17.48 kB / 0.9528 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.7813, allocations: 9.031 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.7813, allocations: 0 / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.7813, allocations: 0 / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.7813, allocations: 1.469 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.286e-05/0.7814, allocations: 148.2 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.7815, allocations: 1.75 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.873e-05/0.7815, allocations: 1.312 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.7815, allocations: 3.938 kB / 0.953 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.7815, allocations: 9 kB / 0.953 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.7815, allocations: 4 kB / 0.953 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7815, allocations: 1.125 kB / 0.953 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.7817, allocations: 85.55 kB / 0.9531 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.7817, allocations: 78.11 kB / 0.9531 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.7817, allocations: 5.219 kB / 0.9531 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.953e-05/0.7818, allocations: 0 / 0.9531 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/0.7818, allocations: 9.234 kB / 0.9531 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.7818, allocations: 1.594 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.085e-05/0.7819, allocations: 76.84 kB / 0.9532 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7819, allocations: 0 / 0.9532 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004187/0.7823, allocations: 33.86 kB / 0.9533 GB, free: 5.219 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 (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.0003561/0.7827, allocations: 150.8 kB / 0.9534 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001359/0.7828, allocations: 34.14 kB / 0.9534 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7828, allocations: 3.938 kB / 0.9534 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.7829, allocations: 8.031 kB / 0.9534 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.7831, allocations: 7.156 kB / 0.9535 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.7833, allocations: 116.4 kB / 0.9536 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.7835, allocations: 0.6806 MB / 0.9542 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.433e-05/0.7835, allocations: 5.625 kB / 0.9542 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.927e-05/0.7835, allocations: 9.938 kB / 0.9542 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.7835, allocations: 0 / 0.9542 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of Templates: time 0.004232/0.7878, allocations: 0.9502 MB / 0.9552 GB, free: 3.75 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","/var/lib/jenkins/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