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.00112/0.00112, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 192 kB / 16.53 MB, free: 6.391 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.761/2.761, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 66.91 kB / 0.9082 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2537, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002346/0.2561, allocations: 1.207 MB / 1.065 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007561/0.2569, allocations: 388.5 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.544e-05/0.2569, allocations: 0 / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.846e-05/0.257, allocations: 0 / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.09e-05/0.257, allocations: 0 / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005333/0.2576, allocations: 99.66 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.786e-05/0.2576, allocations: 15.98 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.2577, allocations: 3.984 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.2577, allocations: 11.94 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.07e-05/0.2578, allocations: 11.92 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.2578, allocations: 4 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.258, allocations: 87.91 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.258, allocations: 4 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.96e-05/0.258, allocations: 7.938 kB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.2582, allocations: 83.81 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2582, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2582, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2582, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 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.0004425/0.2587, allocations: 377.5 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2587, allocations: 12.03 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.769e-05/0.2588, allocations: 38.62 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.2588, allocations: 12.83 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.307e-05/0.2589, allocations: 164.4 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.259, allocations: 384 / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.259, allocations: 4.375 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.2591, allocations: 38.25 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.2591, allocations: 3.938 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.2591, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2591, allocations: 4 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.584e-05/0.2592, allocations: 15.92 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003127/0.2595, allocations: 241 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.788e-05/0.2596, allocations: 34.52 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/0.2596, allocations: 20.94 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-06/0.2597, allocations: 0 / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.2598, allocations: 63.33 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.2598, allocations: 0 / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0002048/0.26, allocations: 69.69 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.2601, allocations: 55.41 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.274e-05/0.2602, allocations: 97.84 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2602, allocations: 25.7 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.866e-05/0.2602, allocations: 88.27 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.2602, allocations: 11.81 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.2603, allocations: 21.7 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.681e-05/0.2604, allocations: 318.8 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.109e-05/0.2604, allocations: 4 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.934e-05/0.2604, allocations: 39.36 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.121e-05/0.2605, allocations: 51.38 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2605, allocations: 3.938 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001047/0.2606, allocations: 73.7 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2606, allocations: 11.94 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2607, allocations: 0 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2607, allocations: 3.984 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.931e-05/0.2607, allocations: 8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.2608, allocations: 8.203 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.904e-05/0.2608, allocations: 11.84 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.2608, allocations: 4 kB / 1.067 GB, free: 10.43 MB / 0.8262 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 7.211e-05/0.2609, allocations: 117.7 kB / 1.067 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.2609, allocations: 4 kB / 1.067 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.802e-05/0.2609, allocations: 7.5 kB / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2609, allocations: 0 / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2609, allocations: 0 / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2609, allocations: 0 / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.2612, allocations: 306.5 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2612, allocations: 0 / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-05/0.2612, allocations: 3.938 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2612, allocations: 4 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.2612, allocations: 0 / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2613, allocations: 3.984 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2613, allocations: 0 / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.2614, allocations: 167.8 kB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.2614, allocations: 81.02 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.2615, allocations: 4.062 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.148e-05/0.2615, allocations: 4 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.859e-05/0.2615, allocations: 7.984 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.2616, allocations: 0 / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.877e-05/0.2616, allocations: 79.28 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2616, allocations: 0 / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002894/0.2619, allocations: 31.94 kB / 1.068 GB, free: 9.523 MB / 0.8262 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.000615/0.2625, allocations: 0.7701 MB / 1.069 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001067/0.2626, allocations: 35.92 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2626, allocations: 4.125 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.2627, allocations: 12 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.2629, allocations: 0 / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009785/0.2639, allocations: 1.246 MB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.2641, allocations: 0.6807 MB / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.217e-05/0.2641, allocations: 7.984 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.2642, allocations: 7.438 kB / 1.071 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2642, allocations: 0 / 1.071 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.2808, allocations: 1.877 MB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.422, allocations: 7.734 kB / 1.073 GB, free: 4.867 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 & 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