Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_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.00702/0.00702, allocations: 101.2 kB / 15.73 MB, free: 6.059 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.001665/0.001665, allocations: 197 kB / 16.68 MB, free: 5.984 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.356/2.356, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 62.11 kB / 0.9504 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2429, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002161/0.2451, allocations: 1.204 MB / 1.089 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007514/0.2459, allocations: 383 kB / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.466e-05/0.2459, allocations: 0 / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.76e-05/0.246, allocations: 4 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.939e-05/0.246, allocations: 0 / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.2465, allocations: 91.66 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.728e-05/0.2466, allocations: 15.98 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.2467, allocations: 4 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.389e-05/0.2467, allocations: 11.92 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.779e-05/0.2467, allocations: 7.984 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.2467, allocations: 0 / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.2469, allocations: 91.84 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.247, allocations: 8 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.838e-05/0.247, allocations: 7.922 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.2472, allocations: 87.88 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2472, allocations: 0 / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of FrontEnd: time 7.244e-06/0.2472, allocations: 0 / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.2472, allocations: 7.938 kB / 1.089 GB, free: 100 kB / 0.8419 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.0004454/0.2477, allocations: 372 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2477, allocations: 8.031 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.513e-05/0.2478, allocations: 34.73 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.857e-05/0.2478, allocations: 8.844 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.348e-05/0.2479, allocations: 160.4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.2479, allocations: 8.375 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-06/0.248, allocations: 384 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.2481, allocations: 46.23 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2481, allocations: 3.938 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2481, allocations: 4 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2481, allocations: 0 / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.387e-05/0.2482, allocations: 7.938 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.2485, allocations: 245 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.99e-05/0.2486, allocations: 34.5 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.602e-05/0.2486, allocations: 24.8 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.2486, allocations: 3.984 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001549/0.2488, allocations: 63.42 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.2488, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0001991/0.249, allocations: 69.69 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.2491, allocations: 59.39 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.386e-05/0.2491, allocations: 97.86 kB / 1.09 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.2492, allocations: 29.7 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.628e-05/0.2492, allocations: 80.14 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2492, allocations: 12.66 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.2492, allocations: 25.7 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.446e-05/0.2493, allocations: 310.8 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.429e-05/0.2494, allocations: 8 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.704e-05/0.2494, allocations: 43.48 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.017e-05/0.2495, allocations: 47.42 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2495, allocations: 7.875 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001044/0.2496, allocations: 73.56 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2496, allocations: 4 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2496, allocations: 4.062 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.2497, allocations: 4 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.171e-05/0.2497, allocations: 7.984 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.2497, allocations: 4 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.646e-05/0.2498, allocations: 7.844 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.2498, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 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.255e-05/0.2499, allocations: 121.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/0.2499, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.158e-05/0.2499, allocations: 7.562 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2499, allocations: 4 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2499, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2499, allocations: 7.984 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.2502, allocations: 294.6 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2502, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.023e-05/0.2502, allocations: 4 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.2502, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.2502, allocations: 7.922 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2502, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2502, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/0.2504, allocations: 165.2 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.2505, allocations: 85.02 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.2505, allocations: 11.98 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.307e-05/0.2505, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.2506, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.2506, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.124e-05/0.2506, allocations: 79.28 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2506, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002894/0.2509, allocations: 39.92 kB / 1.092 GB, free: 13.04 MB / 0.8575 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.000629/0.2515, allocations: 0.7696 MB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001094/0.2517, allocations: 31.92 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2517, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.798e-05/0.2517, allocations: 12 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.2519, allocations: 6.031 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009706/0.2529, allocations: 1.261 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.2531, allocations: 0.6768 MB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.898e-05/0.2532, allocations: 4 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.597e-05/0.2532, allocations: 7.438 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of SimCode: time 3.4e-07/0.2532, allocations: 0 / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.2707, allocations: 1.896 MB / 1.096 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.407/7.677, allocations: 9.562 kB / 1.096 GB, free: 8.367 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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