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.001879/0.001879, allocations: 105.3 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.002061/0.002061, allocations: 190.5 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.455/1.455, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.557/2.557, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 71.61 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3247, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002195/0.3269, allocations: 1.209 MB / 1.028 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007691/0.3277, allocations: 385.2 kB / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.735e-05/0.3277, allocations: 0 / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.3278, allocations: 4 kB / 1.028 GB, free: 456 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.152e-05/0.3278, allocations: 0 / 1.028 GB, free: 456 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005195/0.3284, allocations: 103.6 kB / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.596e-05/0.3284, allocations: 11.98 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.94e-05/0.3285, allocations: 0 / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.406e-05/0.3285, allocations: 11.94 kB / 1.028 GB, free: 328 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.034e-05/0.3285, allocations: 7.984 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.3286, allocations: 3.938 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.3287, allocations: 83.91 kB / 1.028 GB, free: 232 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.3288, allocations: 11.92 kB / 1.028 GB, free: 220 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.3288, allocations: 19.92 kB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.329, allocations: 79.89 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.329, allocations: 0 / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.453e-06/0.329, allocations: 7.875 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.319e-06/0.329, allocations: 0 / 1.029 GB, free: 112 kB / 0.795 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.0004979/0.3295, allocations: 366.5 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.3296, allocations: 8.031 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.3296, allocations: 4.922 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.3297, allocations: 168.3 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.3297, allocations: 4.375 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.3298, allocations: 4.375 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.721e-05/0.3299, allocations: 38.25 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3299, allocations: 3.938 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.3299, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3299, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.414e-05/0.3299, allocations: 11.97 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.3301, allocations: 157.7 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.576e-05/0.3302, allocations: 30.58 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.044e-05/0.3302, allocations: 12.94 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.3302, allocations: 0 / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/0.3304, allocations: 67.23 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.323e-06/0.3304, allocations: 0 / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002003/0.3306, allocations: 69.61 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.3306, allocations: 55.41 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.019e-05/0.3307, allocations: 101.8 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.3307, allocations: 25.7 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.89e-05/0.3308, allocations: 80.14 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.3308, allocations: 11.91 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.3308, allocations: 17.72 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.3309, allocations: 314.8 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.26e-05/0.331, allocations: 12.12 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.596e-05/0.331, allocations: 31.38 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.928e-05/0.3311, allocations: 51.36 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3311, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.577e-05/0.3312, allocations: 69.56 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3312, allocations: 11.94 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3312, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.3312, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.356e-05/0.3313, allocations: 11.98 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3313, allocations: 0 / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.3313, allocations: 11.84 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.3314, allocations: 4 kB / 1.03 GB, free: 14.14 MB / 0.8106 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.292e-05/0.3314, allocations: 113.8 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.3315, allocations: 8.031 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.3315, allocations: 11.5 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3315, allocations: 0 / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3315, allocations: 0 / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3315, allocations: 0 / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.3317, allocations: 157.5 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3317, allocations: 0 / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.391e-05/0.3317, allocations: 3.984 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3317, allocations: 7.938 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.3317, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3317, allocations: 4 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3317, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.3319, allocations: 85.33 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.3319, allocations: 84.95 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.332, allocations: 8 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.094e-05/0.332, allocations: 0 / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.319e-05/0.332, allocations: 0 / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.332, allocations: 7.984 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.643e-05/0.3321, allocations: 79.28 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3321, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002734/0.3324, allocations: 28 kB / 1.031 GB, free: 13.45 MB / 0.8106 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.0004045/0.3328, allocations: 167 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001384/0.3329, allocations: 28.14 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3329, allocations: 0 / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.262e-05/0.333, allocations: 19.92 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.3331, allocations: 4 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000289/0.3334, allocations: 96.16 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.3337, allocations: 0.6768 MB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.45e-05/0.3338, allocations: 4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.367e-05/0.3338, allocations: 11.44 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3338, allocations: 4.125 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of Templates: time 0.003858/0.3377, allocations: 0.953 MB / 1.033 GB, free: 11.45 MB / 0.8106 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 -s cvode -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/jenkins1/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