Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator",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.001292/0.001292, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001454/0.001454, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.568/2.568, allocations: 461.9 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.47 kB / 0.8985 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3025, allocations: 157.4 MB / 1.052 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator): time 0.00234/0.3049, allocations: 0.6884 MB / 1.053 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3065, allocations: 1.12 MB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.3066, allocations: 0 / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.3067, allocations: 11.94 kB / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.327e-05/0.3068, allocations: 3.938 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.3072, allocations: 114.7 kB / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.3074, allocations: 163.7 kB / 1.054 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.3075, allocations: 23.98 kB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.3076, allocations: 59.89 kB / 1.054 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.3078, allocations: 55.84 kB / 1.054 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.679e-05/0.3078, allocations: 8 kB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.44e-05/0.3079, allocations: 19.98 kB / 1.054 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.342e-05/0.308, allocations: 23.92 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.3081, allocations: 63.75 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.3084, allocations: 187.8 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3084, allocations: 3.938 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.001e-06/0.3084, allocations: 7.938 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.3084, allocations: 0 / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00065/0.3091, allocations: 446.7 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3091, allocations: 15.97 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.3092, allocations: 34.73 kB / 1.055 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.91e-05/0.3092, allocations: 16.84 kB / 1.055 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.3095, allocations: 224.2 kB / 1.055 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.3095, allocations: 4.375 kB / 1.055 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.3096, allocations: 12.38 kB / 1.055 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.3098, allocations: 107.9 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3098, allocations: 3.938 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.3098, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3098, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.253e-05/0.3099, allocations: 43.97 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.3105, allocations: 496.8 kB / 1.056 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.859e-05/0.3106, allocations: 57.14 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.641e-05/0.3106, allocations: 25.77 kB / 1.056 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.685e-06/0.3107, allocations: 0 / 1.056 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.3108, allocations: 124.9 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.3108, allocations: 0 / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0002927/0.3111, allocations: 126 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3112, allocations: 85.05 kB / 1.056 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.3113, allocations: 149.5 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.3114, allocations: 33.7 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.201e-05/0.3115, allocations: 100 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.3115, allocations: 15.78 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.3116, allocations: 53.69 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3117, allocations: 318.8 kB / 1.057 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.3119, allocations: 123.9 kB / 1.057 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.3122, allocations: 161 kB / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.3125, allocations: 224.4 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3125, allocations: 0 / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0006017/0.3131, allocations: 380.9 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/0.3132, allocations: 63.39 kB / 1.058 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3132, allocations: 7.875 kB / 1.058 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3132, allocations: 4 kB / 1.058 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.887e-05/0.3132, allocations: 0 / 1.058 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.3132, allocations: 4 kB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.3136, allocations: 71.75 kB / 1.058 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.3137, allocations: 20.05 kB / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (booPul[1].y,$PRE.booPul[1].y,$whenCondition3,$whenCondition4,booPul[2].y,$PRE.booPul[2].y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0002219/0.3139, allocations: 133.8 kB / 1.058 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.3139, allocations: 7.906 kB / 1.058 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.956e-05/0.314, allocations: 7.891 kB / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.314, allocations: 0 / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.314, allocations: 7.938 kB / 1.058 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.314, allocations: 3.938 kB / 1.058 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.3142, allocations: 185.6 kB / 1.058 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3142, allocations: 0 / 1.058 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.735e-06/0.3142, allocations: 4 kB / 1.058 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3142, allocations: 0 / 1.058 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.3143, allocations: 4 kB / 1.058 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3143, allocations: 0 / 1.058 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3143, allocations: 0 / 1.058 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001666/0.3144, allocations: 137.8 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.3145, allocations: 85.08 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.3145, allocations: 8 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.433e-05/0.3146, allocations: 3.984 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.3146, allocations: 15.88 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3146, allocations: 4 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.512e-05/0.3147, allocations: 99.25 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3147, allocations: 0 / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002607/0.3149, allocations: 39.94 kB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition4,booPul[1].y,$whenCondition1,$whenCondition2,booPul[2].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0004716/0.3154, allocations: 0.6679 MB / 1.059 GB, free: 280 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004386/0.3159, allocations: 326.5 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3159, allocations: 0 / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.883e-05/0.3159, allocations: 39.95 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.3162, allocations: 21.36 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.3188, allocations: 2.177 MB / 1.062 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.3193, allocations: 0.7083 MB / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.945e-05/0.3193, allocations: 11.94 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.3194, allocations: 19.42 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.3194, allocations: 4 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.3346, allocations: 3.254 MB / 1.066 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/0.3348, allocations: 236.9 kB / 1.066 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.009, allocations: 1.125 kB / 1.066 GB, free: 9.453 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches