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.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.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.001205/0.001205, 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.001253/0.001253, allocations: 192.5 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.827/2.827, allocations: 469.4 MB / 0.742 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001482, allocations: 69.52 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2839, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator): time 0.001899/0.2858, allocations: 0.6354 MB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.2872, allocations: 1.125 MB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.096e-05/0.2872, allocations: 0 / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.122e-05/0.2874, allocations: 3.938 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.618e-05/0.2874, allocations: 3.938 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.2879, allocations: 113.8 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000266/0.2882, allocations: 207.6 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2883, allocations: 12 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.2884, allocations: 83.88 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.2885, allocations: 59.86 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.127e-05/0.2886, allocations: 12 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-05/0.2887, allocations: 31.92 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.389e-05/0.2888, allocations: 27.91 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.2889, allocations: 67.83 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.2891, allocations: 199.8 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.2892, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2892, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.2892, allocations: 0 / 1.066 GB, free: 11.96 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006055/0.2898, allocations: 458.6 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2898, allocations: 8.031 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.2899, allocations: 38.75 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.506e-05/0.2899, allocations: 16.83 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.2902, allocations: 220.3 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.2902, allocations: 4.375 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.2903, allocations: 20.36 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.2904, allocations: 95.86 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2904, allocations: 3.938 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2905, allocations: 4 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2905, allocations: 4 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.624e-05/0.2906, allocations: 35.97 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005681/0.2911, allocations: 0.4889 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.285e-05/0.2912, allocations: 57.12 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.716e-05/0.2913, allocations: 33.77 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.2913, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.2915, allocations: 117 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.2915, allocations: 0 / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0002854/0.2918, allocations: 129.5 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.2918, allocations: 85.11 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.2919, allocations: 137.7 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.292, allocations: 33.7 kB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.924e-05/0.2921, allocations: 96.05 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.2921, allocations: 19.8 kB / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.2922, allocations: 53.67 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2923, allocations: 314.8 kB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.2926, allocations: 131.8 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.2928, allocations: 161 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.2931, allocations: 228.3 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2931, allocations: 0 / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005649/0.2936, allocations: 372.7 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.198e-05/0.2937, allocations: 67.39 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2937, allocations: 4 kB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2937, allocations: 0 / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.302e-05/0.2938, allocations: 4.375 kB / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.2938, allocations: 0 / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000429/0.2942, allocations: 75.94 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.2942, allocations: 11.98 kB / 1.07 GB, free: 8.141 MB / 0.8262 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.0001433/0.2944, allocations: 139 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.2944, allocations: 7.906 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.2945, allocations: 15.89 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2945, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.2945, allocations: 8 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.2945, allocations: 7.922 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.2947, allocations: 181.6 kB / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2947, allocations: 0 / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.278e-06/0.2947, allocations: 0 / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2947, allocations: 4 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.2947, allocations: 4 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2947, allocations: 0 / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2947, allocations: 0 / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.2949, allocations: 137.8 kB / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.295, allocations: 85.02 kB / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.295, allocations: 0 / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.7e-05/0.295, allocations: 11.94 kB / 1.07 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.2951, allocations: 7.922 kB / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.2951, allocations: 4 kB / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.196e-05/0.2952, allocations: 103.8 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2952, allocations: 0 / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002713/0.2954, allocations: 47.83 kB / 1.07 GB, free: 7.289 MB / 0.8262 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.0004976/0.2959, allocations: 0.6643 MB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000451/0.2964, allocations: 326.8 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2964, allocations: 4.125 kB / 1.071 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.871e-05/0.2965, allocations: 35.95 kB / 1.071 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.2968, allocations: 28.8 kB / 1.071 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.2998, allocations: 2.159 MB / 1.073 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.3003, allocations: 0.7002 MB / 1.074 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.42e-05/0.3003, allocations: 4 kB / 1.074 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.554e-05/0.3004, allocations: 31.36 kB / 1.074 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of SimCode: time 1.022e-06/0.3004, allocations: 0 / 1.074 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.3264, allocations: 3.457 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/8.1, allocations: 15.23 kB / 1.078 GB, free: 15.81 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator_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_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.csv","/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