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.008777/0.008777, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001555/0.001555, allocations: 190 kB / 16.67 MB, free: 5.977 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.664/1.664, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.405/2.405, allocations: 390.3 MB / 0.6648 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001164, allocations: 66.23 kB / 0.9504 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.288, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002293/0.2903, allocations: 1.214 MB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008111/0.2911, allocations: 387 kB / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.148e-05/0.2912, allocations: 0 / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.2912, allocations: 0 / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.664e-05/0.2913, allocations: 0 / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.2918, allocations: 99.66 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.278e-05/0.2919, allocations: 4 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.292, allocations: 7.984 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.56e-05/0.292, allocations: 15.92 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.705e-05/0.292, allocations: 7.922 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.292, allocations: 4 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.2922, allocations: 87.91 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.2923, allocations: 0 / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.2923, allocations: 11.94 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002058/0.2925, allocations: 83.88 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2925, allocations: 3.938 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2925, allocations: 8 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.2926, allocations: 0 / 1.089 GB, free: 108 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.0004918/0.293, allocations: 372 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.2931, allocations: 12.03 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.575e-05/0.2932, allocations: 30.75 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.2932, allocations: 4.844 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.2933, allocations: 168.4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.2933, allocations: 384 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.2934, allocations: 12.38 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.2935, allocations: 34.25 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2935, allocations: 3.938 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.2935, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2935, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.678e-05/0.2935, allocations: 15.92 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.2939, allocations: 248.9 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.294, allocations: 38.52 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.835e-05/0.294, allocations: 20.94 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.294, allocations: 0 / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.2942, allocations: 55.34 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.2942, allocations: 0 / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0002143/0.2944, allocations: 73.67 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.2945, allocations: 55.41 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.706e-05/0.2946, allocations: 97.84 kB / 1.09 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.2946, allocations: 29.7 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.75e-05/0.2946, allocations: 80.14 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.2946, allocations: 12.66 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.462e-05/0.2947, allocations: 21.72 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2948, allocations: 318.8 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.2948, allocations: 8.125 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.947e-05/0.2949, allocations: 39.36 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.053e-05/0.295, allocations: 47.44 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.295, allocations: 12.06 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001045/0.2951, allocations: 77.62 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2951, allocations: 5.719 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.2951, allocations: 8 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2951, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.13e-05/0.2952, allocations: 8 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2952, allocations: 0 / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.788e-05/0.2952, allocations: 11.84 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.2952, allocations: 3.984 kB / 1.091 GB, free: 13.96 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 8.489e-05/0.2953, allocations: 121.7 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/0.2953, allocations: 32 / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.2954, allocations: 11.56 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2954, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2954, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2954, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.2957, allocations: 298.5 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2957, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.799e-05/0.2957, allocations: 7.938 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2957, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2957, allocations: 8 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2957, allocations: 4 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2957, allocations: 3.938 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.2959, allocations: 160.9 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.2959, allocations: 81.02 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.296, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.7e-05/0.296, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.296, allocations: 7.984 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.2961, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.31e-05/0.2961, allocations: 83.28 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.41e-07/0.2961, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000271/0.2964, allocations: 31.94 kB / 1.092 GB, free: 13.05 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.0006828/0.2971, allocations: 0.7636 MB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001179/0.2972, allocations: 40.09 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2972, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.429e-05/0.2973, allocations: 19.98 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.0001944/0.2975, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2985, allocations: 1.261 MB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.2988, allocations: 0.6729 MB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.066e-05/0.2988, allocations: 7.984 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.2988, allocations: 11.44 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.2988, allocations: 0 / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.48/1.779, allocations: 1.887 MB / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/9.198, allocations: 8.25 kB / 1.096 GB, free: 8.371 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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:p,seed,time,y