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.00651/0.00651, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001945/0.001945, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.273/2.273, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9142/0.9155, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002351/0.9179, allocations: 1.204 MB / 1.089 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008082/0.9187, allocations: 382.3 kB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.9187, allocations: 4 kB / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.9188, allocations: 0 / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.69e-05/0.9188, allocations: 1.312 kB / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005405/0.9194, allocations: 101.4 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.419e-05/0.9194, allocations: 18.08 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.9195, allocations: 2.203 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.402e-05/0.9195, allocations: 5.578 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.552e-05/0.9196, allocations: 9.125 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.9196, allocations: 1.344 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.9198, allocations: 88.28 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.82e-05/0.9198, allocations: 14.84 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.9199, allocations: 3.859 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.9201, allocations: 86.03 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.9201, allocations: 0 / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.993e-06/0.9201, allocations: 0 / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.9201, allocations: 1.438 kB / 1.09 GB, free: 4.305 MB / 0.8575 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.000422/0.9205, allocations: 365.8 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.9206, allocations: 13.72 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.9206, allocations: 2.062 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.02e-05/0.9207, allocations: 170.8 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.9207, allocations: 5.656 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.9207, allocations: 7.703 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.9208, allocations: 35.33 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.9208, allocations: 192 / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.9208, allocations: 5.75 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.9209, allocations: 0 / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.87e-05/0.9209, allocations: 4.656 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.921, allocations: 153.6 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.659e-05/0.9211, allocations: 35.84 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.08e-05/0.9211, allocations: 15.73 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.9211, allocations: 4.547 kB / 1.091 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/0.9213, allocations: 57.86 kB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.9213, allocations: 3.938 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0001992/0.9215, allocations: 76.28 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.9215, allocations: 52.84 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.23e-05/0.9216, allocations: 94.28 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.9216, allocations: 27.12 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.655e-05/0.9216, allocations: 84.14 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.9216, allocations: 7.516 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.081e-05/0.9217, allocations: 20.17 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.9217, allocations: 321.9 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2e-05/0.9217, allocations: 6.047 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.099e-05/0.9218, allocations: 36.81 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.015e-05/0.9218, allocations: 45.44 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.9218, allocations: 5.156 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.563e-05/0.9219, allocations: 69.2 kB / 1.091 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.922, allocations: 9.828 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.922, allocations: 5.094 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.922, allocations: 1.844 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.934e-05/0.922, allocations: 7.719 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.9221, allocations: 2.172 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.504e-05/0.9221, allocations: 4.844 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.9221, allocations: 2.719 kB / 1.091 GB, free: 2.547 MB / 0.8575 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 4.764e-05/0.9222, allocations: 118 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.118e-05/0.9222, allocations: 5.984 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.941e-05/0.9222, allocations: 4.203 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.9222, allocations: 1.344 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.9222, allocations: 0 / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.9222, allocations: 1.875 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.208e-05/0.9223, allocations: 154.1 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.9223, allocations: 0.5156 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.267e-05/0.9223, allocations: 6.719 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.9223, allocations: 7.938 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.9223, allocations: 2.031 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.9223, allocations: 0.5156 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.9223, allocations: 1.031 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.9225, allocations: 83.55 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.712e-05/0.9225, allocations: 91.03 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.9225, allocations: 5.953 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.918e-05/0.9225, allocations: 0 / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.9226, allocations: 7.531 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.9226, allocations: 2.125 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.073e-05/0.9226, allocations: 81.3 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9226, allocations: 0 / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002534/0.9229, allocations: 30.47 kB / 1.092 GB, free: 1.938 MB / 0.8575 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.0003262/0.9232, allocations: 169.7 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001199/0.9233, allocations: 24.89 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.9233, allocations: 1.062 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.9234, allocations: 13.72 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.9235, allocations: 5.656 kB / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002336/0.9238, allocations: 98.88 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.9239, allocations: 0.6765 MB / 1.093 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.991e-05/0.9239, allocations: 6.594 kB / 1.093 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.9239, allocations: 8.906 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.9239, allocations: 0.7188 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of Templates: time 0.003305/0.9272, allocations: 0.9604 MB / 1.094 GB, free: 0.8711 MB / 0.8575 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