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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_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.001382/0.001382, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001465/0.001465, allocations: 189.8 kB / 16.25 MB, free: 6.637 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.341/1.341, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.58/2.58, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 61.34 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2682, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001945/0.2702, allocations: 1.278 MB / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006415/0.2708, allocations: 390.8 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.091e-05/0.2709, allocations: 0 / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.603e-05/0.2709, allocations: 0 / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.507e-05/0.2709, allocations: 3.938 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.2714, allocations: 87.8 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.519e-05/0.2714, allocations: 8 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.2715, allocations: 0 / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.314e-05/0.2715, allocations: 19.91 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.369e-05/0.2715, allocations: 4 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.2715, allocations: 0 / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.2717, allocations: 91.84 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.2717, allocations: 7.984 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.2717, allocations: 7.938 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.2719, allocations: 83.88 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2719, allocations: 4 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2719, allocations: 0 / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.2719, allocations: 0 / 1.054 GB, free: 6.656 MB / 0.8106 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.0004079/0.2723, allocations: 373.5 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2724, allocations: 8.625 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.265e-05/0.2724, allocations: 38.69 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.525e-05/0.2725, allocations: 4.938 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.597e-05/0.2726, allocations: 168.2 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.2726, allocations: 8.359 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.2726, allocations: 8.375 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.593e-05/0.2727, allocations: 38.25 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2727, allocations: 3.938 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.2727, allocations: 0 / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.2727, allocations: 0 / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.181e-05/0.2728, allocations: 8 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002769/0.2731, allocations: 237 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.011e-05/0.2732, allocations: 46.44 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.73e-05/0.2732, allocations: 20.94 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.2732, allocations: 0 / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001174/0.2733, allocations: 55.41 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.2733, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0001841/0.2735, allocations: 77.61 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.2736, allocations: 55.41 kB / 1.055 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.661e-05/0.2736, allocations: 89.86 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.2737, allocations: 33.7 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.5e-05/0.2737, allocations: 80.14 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.2737, allocations: 11.8 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.2737, allocations: 25.72 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.659e-05/0.2738, allocations: 319 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.974e-05/0.2739, allocations: 4 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.521e-05/0.2739, allocations: 35.42 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.62e-05/0.274, allocations: 55.31 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.274, allocations: 7.875 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.261e-05/0.2741, allocations: 77.59 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2741, allocations: 8 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2741, allocations: 3.938 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.2741, allocations: 0 / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.383e-05/0.2742, allocations: 8 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2742, allocations: 4 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.315e-05/0.2742, allocations: 7.844 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.2742, allocations: 4 kB / 1.056 GB, free: 4.504 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 (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 6.611e-05/0.2743, allocations: 119.4 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.042e-05/0.2743, allocations: 7.984 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.588e-05/0.2743, allocations: 3.562 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2743, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2743, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2744, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.2746, allocations: 306.8 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2746, allocations: 3.984 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.531e-05/0.2746, allocations: 4 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2746, allocations: 0 / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.168e-06/0.2746, allocations: 8 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2746, allocations: 0 / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2746, allocations: 0 / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.2748, allocations: 163.4 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.2748, allocations: 81.02 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.2748, allocations: 8 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.773e-05/0.2749, allocations: 0 / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.2749, allocations: 0 / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.2749, allocations: 8 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.006e-05/0.2749, allocations: 79.27 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2749, allocations: 0 / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000251/0.2752, allocations: 31.94 kB / 1.057 GB, free: 3.602 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,$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.0005656/0.2758, allocations: 0.7715 MB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.859e-05/0.2759, allocations: 31.98 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2759, allocations: 3.938 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.472e-05/0.2759, allocations: 15.98 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.2761, allocations: 5.547 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008426/0.277, allocations: 1.254 MB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.2772, allocations: 0.6768 MB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.804e-05/0.2772, allocations: 4 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.2772, allocations: 14.44 kB / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2772, allocations: 7.938 kB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.154/1.431, allocations: 1.787 MB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/1.431, allocations: 276.3 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.535/3.967, allocations: 3.25 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > 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:p,seed,time,y