Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00746/0.00746, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.002052/0.002052, allocations: 193 kB / 16.68 MB, free: 6.363 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.754/2.754, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2994, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002313/0.3017, allocations: 1.2 MB / 1.167 GB, free: 6.102 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008397/0.3026, allocations: 379.1 kB / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.3026, allocations: 3.938 kB / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.3027, allocations: 8 kB / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.958e-05/0.3027, allocations: 3.938 kB / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.3032, allocations: 87.66 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.616e-05/0.3033, allocations: 19.92 kB / 1.168 GB, free: 5.609 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.719e-05/0.3033, allocations: 0 / 1.168 GB, free: 5.609 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.3034, allocations: 11.98 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.895e-05/0.3034, allocations: 7.984 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.3034, allocations: 0 / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.3036, allocations: 91.84 kB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.665e-05/0.3036, allocations: 7.984 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.3037, allocations: 8 kB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.3039, allocations: 87.98 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3039, allocations: 0 / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3039, allocations: 0 / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3039, allocations: 0 / 1.168 GB, free: 5.398 MB / 0.92 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.0005148/0.3044, allocations: 381 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3045, allocations: 8.031 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.254e-05/0.3045, allocations: 30.75 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.3046, allocations: 4.938 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.3047, allocations: 168.4 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3047, allocations: 8.359 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3048, allocations: 4.359 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.3049, allocations: 42.25 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3049, allocations: 7.875 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.3049, allocations: 0 / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3049, allocations: 0 / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.472e-05/0.305, allocations: 7.938 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003688/0.3053, allocations: 260.9 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.803e-05/0.3055, allocations: 34.5 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.233e-05/0.3055, allocations: 16.94 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.839e-06/0.3055, allocations: 0 / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000159/0.3057, allocations: 67.34 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.3057, allocations: 0 / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0002241/0.3059, allocations: 65.67 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.306, allocations: 55.41 kB / 1.169 GB, free: 4.059 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.203e-05/0.3061, allocations: 93.86 kB / 1.169 GB, free: 3.957 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3061, allocations: 29.7 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.293e-05/0.3061, allocations: 84.14 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.3062, allocations: 15.83 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.3062, allocations: 25.84 kB / 1.169 GB, free: 3.789 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3064, allocations: 318.8 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.298e-05/0.3064, allocations: 7.984 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-05/0.3064, allocations: 35.42 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.105e-05/0.3065, allocations: 51.38 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3065, allocations: 3.938 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001157/0.3067, allocations: 69.61 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.3067, allocations: 8 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3067, allocations: 0 / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3067, allocations: 4 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.028e-05/0.3068, allocations: 8 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3068, allocations: 8.188 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.552e-05/0.3068, allocations: 3.953 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.3068, allocations: 8 kB / 1.17 GB, free: 3.234 MB / 0.92 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.597e-05/0.3069, allocations: 121.9 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.3069, allocations: 7.969 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.5e-05/0.307, allocations: 3.562 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.307, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.307, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.307, allocations: 4 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002878/0.3073, allocations: 294.5 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.3073, allocations: 3.984 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.946e-05/0.3073, allocations: 8 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3073, allocations: 3.938 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.3074, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3074, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3074, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.3075, allocations: 163.5 kB / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.3076, allocations: 85 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.3076, allocations: 4 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.103e-05/0.3077, allocations: 4 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.3077, allocations: 4 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.3077, allocations: 4 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.318e-05/0.3078, allocations: 83.2 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3078, allocations: 0 / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002874/0.3081, allocations: 35.88 kB / 1.171 GB, free: 2.316 MB / 0.92 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,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0007934/0.3089, allocations: 0.759 MB / 1.171 GB, free: 1.543 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.309, allocations: 35.92 kB / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.309, allocations: 0 / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.104e-05/0.309, allocations: 11.98 kB / 1.171 GB, free: 1.496 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.3093, allocations: 8.125 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.3104, allocations: 1.249 MB / 1.173 GB, free: 144 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3107, allocations: 0.6845 MB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.903e-05/0.3108, allocations: 0 / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.3108, allocations: 23.42 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of SimCode: time 3.2e-07/0.3108, allocations: 0 / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.3338, allocations: 1.906 MB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/8.198, allocations: 3.625 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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:time,y