Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_11_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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 152 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.001101/0.001101, allocations: 196 kB / 16.53 MB, free: 6.664 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.707/2.707, allocations: 469.8 MB / 0.7424 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 68.12 kB / 0.9086 GB, free: 34.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2825, allocations: 159.2 MB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002257/0.2848, allocations: 1.211 MB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007174/0.2855, allocations: 376.6 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.2855, allocations: 4 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.2856, allocations: 0 / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.815e-05/0.2856, allocations: 3.938 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.2861, allocations: 95.7 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.065e-05/0.2861, allocations: 15.94 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.945e-05/0.2862, allocations: 8 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.046e-05/0.2862, allocations: 11.92 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.37e-05/0.2862, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.2862, allocations: 0 / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.2864, allocations: 95.84 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.2865, allocations: 7.969 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.2865, allocations: 7.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.2866, allocations: 79.83 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2867, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2867, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.2867, allocations: 3.938 kB / 1.066 GB, free: 12.34 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.0004761/0.2872, allocations: 374.9 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.2872, allocations: 8.031 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/0.2873, allocations: 42.69 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.2873, allocations: 4.844 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2874, allocations: 164.4 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2874, allocations: 4.375 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-06/0.2874, allocations: 384 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.906e-05/0.2875, allocations: 46.19 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.2876, allocations: 11.92 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.2876, allocations: 0 / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2876, allocations: 0 / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.829e-05/0.2876, allocations: 4 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003186/0.2879, allocations: 241 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.097e-05/0.288, allocations: 38.5 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.702e-05/0.2881, allocations: 24.88 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.2881, allocations: 0 / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.2882, allocations: 59.39 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.2882, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0001883/0.2884, allocations: 69.67 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.2885, allocations: 59.34 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.063e-05/0.2886, allocations: 105.8 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.2886, allocations: 25.7 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.685e-05/0.2886, allocations: 84.12 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.2887, allocations: 11.81 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.2887, allocations: 21.72 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2888, allocations: 318.8 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.147e-05/0.2889, allocations: 8 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.182e-05/0.2889, allocations: 39.55 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.225e-05/0.289, allocations: 43.38 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.289, allocations: 3.938 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001029/0.2891, allocations: 73.61 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2891, allocations: 4 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2891, allocations: 4.062 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2891, allocations: 4 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.648e-05/0.2892, allocations: 11.94 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.2892, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.2892, allocations: 11.84 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.2893, allocations: 4.25 kB / 1.068 GB, free: 10.19 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 0.0001074/0.2894, allocations: 121.7 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.141e-05/0.2894, allocations: 4 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.558e-05/0.2894, allocations: 3.562 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2894, allocations: 8.094 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2894, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2894, allocations: 3.984 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.2897, allocations: 298.5 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2897, allocations: 0 / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.735e-05/0.2897, allocations: 4 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2897, allocations: 0 / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.2897, allocations: 0 / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2897, allocations: 0 / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2898, allocations: 4 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.2899, allocations: 163.5 kB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.29, allocations: 85.02 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.29, allocations: 0 / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.721e-05/0.29, allocations: 0 / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.794e-05/0.29, allocations: 7.875 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.2901, allocations: 7.984 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.759e-05/0.2901, allocations: 83.28 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2901, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002579/0.2904, allocations: 31.94 kB / 1.069 GB, free: 9.281 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.0006801/0.2911, allocations: 0.7632 MB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001025/0.2912, allocations: 35.92 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2912, allocations: 0 / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.914e-05/0.2912, allocations: 19.92 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.2914, allocations: 4 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.2925, allocations: 1.25 MB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.2928, allocations: 0.6768 MB / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.55e-05/0.2928, allocations: 0 / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.434e-05/0.2928, allocations: 11.44 kB / 1.071 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2928, allocations: 0 / 1.071 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.791/2.084, allocations: 1.865 MB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/14.32, allocations: 10.42 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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