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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> 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.004004/0.004004, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001035/0.001035, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.698/2.698, allocations: 469.4 MB / 0.7422 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 68.11 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2573, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002181/0.2595, allocations: 1.2 MB / 1.221 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006887/0.2602, allocations: 380.6 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.052e-05/0.2602, allocations: 0 / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.2603, allocations: 3.938 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.944e-05/0.2603, allocations: 3.984 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.2607, allocations: 95.72 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.817e-05/0.2608, allocations: 15.92 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.2608, allocations: 4 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.117e-05/0.2609, allocations: 7.984 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.337e-05/0.2609, allocations: 3.938 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.2609, allocations: 7.984 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.2611, allocations: 91.86 kB / 1.221 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.2611, allocations: 11.97 kB / 1.221 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.2612, allocations: 7.938 kB / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.2613, allocations: 75.83 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2613, allocations: 4 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2613, allocations: 0 / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.2613, allocations: 0 / 1.222 GB, free: 12.71 MB / 0.9825 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.0003828/0.2617, allocations: 376.9 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2618, allocations: 12.03 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.421e-05/0.2618, allocations: 34.75 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.2619, allocations: 0.9375 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.722e-05/0.2619, allocations: 168.3 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.262, allocations: 8.344 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.262, allocations: 8.375 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.91e-05/0.2621, allocations: 38.19 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.2621, allocations: 7.875 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.2621, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.2621, allocations: 4 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.2622, allocations: 12 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002634/0.2624, allocations: 241 kB / 1.222 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.165e-05/0.2625, allocations: 42.44 kB / 1.222 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.741e-05/0.2626, allocations: 20.94 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-06/0.2626, allocations: 0 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/0.2627, allocations: 55.41 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.2627, allocations: 0 / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0001856/0.2629, allocations: 73.67 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.263, allocations: 55.34 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.555e-05/0.263, allocations: 93.86 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.263, allocations: 29.7 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.343e-05/0.2631, allocations: 80.14 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.2631, allocations: 23.95 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.2631, allocations: 21.72 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.295e-05/0.2632, allocations: 318.8 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.316e-05/0.2633, allocations: 8 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.381e-05/0.2633, allocations: 31.42 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.842e-05/0.2634, allocations: 55.62 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2634, allocations: 3.938 kB / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001003/0.2635, allocations: 73.61 kB / 1.223 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.2635, allocations: 7.938 kB / 1.223 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2635, allocations: 4 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.2635, allocations: 0 / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.581e-05/0.2636, allocations: 12.03 kB / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2636, allocations: 0 / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.603e-05/0.2636, allocations: 12.02 kB / 1.223 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.2636, allocations: 3.984 kB / 1.223 GB, free: 10.55 MB / 0.9825 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.498e-05/0.2637, allocations: 122.3 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.2637, allocations: 4 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.753e-05/0.2637, allocations: 3.562 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2637, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.2638, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2638, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.264, allocations: 298.5 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.264, allocations: 7.984 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.699e-05/0.264, allocations: 7.938 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.264, allocations: 4 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.264, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.264, allocations: 160 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2641, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.2642, allocations: 163.4 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.2642, allocations: 77.11 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.2642, allocations: 8 kB / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.258e-05/0.2643, allocations: 3.938 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.591e-05/0.2643, allocations: 4 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.2643, allocations: 0 / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.095e-05/0.2644, allocations: 83.27 kB / 1.224 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.2644, allocations: 0 / 1.224 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002788/0.2647, allocations: 35.81 kB / 1.224 GB, free: 9.645 MB / 0.9825 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.0005925/0.2653, allocations: 0.7602 MB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000104/0.2654, allocations: 35.92 kB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2654, allocations: 0 / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.037e-05/0.2654, allocations: 28.05 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.2656, allocations: 1.875 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008995/0.2665, allocations: 1.26 MB / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.2667, allocations: 0.6769 MB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.034e-05/0.2668, allocations: 8.25 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.338e-05/0.2668, allocations: 11.42 kB / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.2668, allocations: 0 / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.2839, allocations: 1.912 MB / 1.229 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.708, allocations: 4.062 kB / 1.229 GB, free: 4.953 MB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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:time,y