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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007722/0.007722, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001521/0.001521, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.418/1.418, 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 11.0.1-master/package.mo): time 2.71/2.71, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001349, allocations: 59.91 kB / 1.054 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9258/0.9271, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002587/0.9298, allocations: 1.202 MB / 1.209 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.9307, allocations: 388.5 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.157e-05/0.9308, allocations: 0 / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.9308, allocations: 0 / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.391e-05/0.9309, allocations: 0 / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.9316, allocations: 95.66 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.231e-05/0.9317, allocations: 15.98 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.9317, allocations: 0 / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.731e-05/0.9318, allocations: 11.98 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.493e-05/0.9318, allocations: 11.92 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.9318, allocations: 0 / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.932, allocations: 91.84 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.9321, allocations: 7.984 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.878e-05/0.9321, allocations: 7.938 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.9323, allocations: 79.89 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.9324, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9324, allocations: 4 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.9324, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 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.0004897/0.9329, allocations: 377.2 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.9329, allocations: 8.031 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/0.933, allocations: 0.9375 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.9331, allocations: 184 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.9331, allocations: 384 / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.9331, allocations: 8.359 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.9332, allocations: 38.25 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.9333, allocations: 192 / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.9333, allocations: 7.938 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.9333, allocations: 0 / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.199e-05/0.9333, allocations: 7.984 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.9335, allocations: 153.7 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.5e-05/0.9336, allocations: 30.52 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.489e-05/0.9336, allocations: 12.98 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.9336, allocations: 4 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.9338, allocations: 51.41 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.362e-06/0.9338, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002119/0.934, allocations: 73.55 kB / 1.21 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.9341, allocations: 51.41 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.065e-05/0.9342, allocations: 105.8 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.9342, allocations: 25.7 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.389e-05/0.9343, allocations: 80.14 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.9343, allocations: 11.91 kB / 1.211 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.9343, allocations: 17.72 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.9345, allocations: 318.8 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.143e-05/0.9345, allocations: 8 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.899e-05/0.9345, allocations: 35.55 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.476e-05/0.9346, allocations: 47.38 kB / 1.211 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.9346, allocations: 0 / 1.211 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001003/0.9347, allocations: 65.53 kB / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.9347, allocations: 11.94 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.9348, allocations: 4.094 kB / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.9348, allocations: 3.938 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.006e-05/0.9349, allocations: 15.92 kB / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.9349, allocations: 0 / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.683e-05/0.9349, allocations: 4 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.9349, allocations: 0 / 1.211 GB, free: 9.695 MB / 0.9356 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 0.0001351/0.9351, allocations: 113.8 kB / 1.211 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.9351, allocations: 3.938 kB / 1.211 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.392e-05/0.9351, allocations: 7.734 kB / 1.211 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.9351, allocations: 4 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.9351, allocations: 3.984 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.9351, allocations: 3.984 kB / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.9352, allocations: 155.5 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9352, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.389e-05/0.9353, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.9353, allocations: 11.88 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.9353, allocations: 0 / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.9353, allocations: 0 / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.9353, allocations: 4 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.9354, allocations: 93.02 kB / 1.212 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.9355, allocations: 77.11 kB / 1.212 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.9355, allocations: 7.938 kB / 1.212 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.056e-05/0.9355, allocations: 0 / 1.212 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.9355, allocations: 7.984 kB / 1.212 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.9356, allocations: 4 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.689e-05/0.9356, allocations: 75.28 kB / 1.212 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9356, allocations: 96 / 1.212 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002428/0.9359, allocations: 32 kB / 1.212 GB, free: 9.004 MB / 0.9356 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.0003019/0.9362, allocations: 153.8 kB / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001045/0.9363, allocations: 31.86 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.9363, allocations: 0 / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.9363, allocations: 24.11 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.9365, allocations: 4 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002324/0.9367, allocations: 104.8 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.9369, allocations: 0.6768 MB / 1.213 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.203e-05/0.937, allocations: 4 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.411e-05/0.937, allocations: 7.438 kB / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.937, allocations: 0 / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of Templates: time 0.00314/0.9401, allocations: 0.9643 MB / 1.214 GB, free: 6.996 MB / 0.9356 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