Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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.001123/0.001123, 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.001164/0.001164, allocations: 193.8 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.625/1.625, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.445/2.445, allocations: 390.2 MB / 0.6647 GB, free: 396 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 59.91 kB / 0.8127 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6968/0.6985, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.001824/0.7004, allocations: 0.6608 MB / 0.9504 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008251/0.7012, allocations: 0.8324 MB / 0.9512 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.695e-05/0.7013, allocations: 0 / 0.9512 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.376e-05/0.7014, allocations: 7.938 kB / 0.9512 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.142e-05/0.7014, allocations: 5.406 kB / 0.9512 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.7016, allocations: 23.72 kB / 0.9512 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7e-05/0.7017, allocations: 34.14 kB / 0.9513 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.7018, allocations: 4.781 kB / 0.9513 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.875e-05/0.7018, allocations: 16.45 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.898e-05/0.7019, allocations: 20.88 kB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.7019, allocations: 2.031 kB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.286e-05/0.7019, allocations: 3.25 kB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.702, allocations: 11.83 kB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.702, allocations: 14.62 kB / 0.9513 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.647e-05/0.7022, allocations: 40.33 kB / 0.9514 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.7022, allocations: 4 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.735e-06/0.7022, allocations: 0 / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.7022, allocations: 3.938 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000403/0.7026, allocations: 347 kB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.7026, allocations: 10.16 kB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.615e-05/0.7027, allocations: 36.42 kB / 0.9517 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.493e-05/0.7027, allocations: 6.125 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.7028, allocations: 179.4 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.7029, allocations: 2.656 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.7029, allocations: 1.969 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.7031, allocations: 60.02 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.7031, allocations: 5.438 kB / 0.952 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.7031, allocations: 4 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.7031, allocations: 1.156 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.7033, allocations: 47.5 kB / 0.952 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003594/0.7037, allocations: 281.2 kB / 0.9523 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.7039, allocations: 39.83 kB / 0.9523 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.564e-05/0.704, allocations: 28.47 kB / 0.9524 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.704, allocations: 4 kB / 0.9524 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.704, allocations: 32.31 kB / 0.9524 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.704, allocations: 0 / 0.9524 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003871/0.7044, allocations: 82.14 kB / 0.9525 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.7044, allocations: 53.12 kB / 0.9525 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.7045, allocations: 108.4 kB / 0.9526 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.7045, allocations: 29.7 kB / 0.9527 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.988e-05/0.7046, allocations: 89.34 kB / 0.9528 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.7046, allocations: 5.312 kB / 0.9528 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.7046, allocations: 25.88 kB / 0.9528 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.439e-05/0.7047, allocations: 316 kB / 0.9531 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.222e-05/0.7048, allocations: 24.81 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.204e-05/0.7049, allocations: 19.17 kB / 0.9531 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.705, allocations: 45.69 kB / 0.9532 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.705, allocations: 0 / 0.9532 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002053/0.7053, allocations: 70.25 kB / 0.9532 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.7053, allocations: 5.875 kB / 0.9532 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.7053, allocations: 4.094 kB / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.7053, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.7054, allocations: 10.39 kB / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.7054, allocations: 0 / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.867e-05/0.7055, allocations: 7.719 kB / 0.9533 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.7055, allocations: 5.266 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001276/0.7057, allocations: 117.6 kB / 0.9534 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.461e-05/0.7057, allocations: 1.312 kB / 0.9534 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.899e-05/0.7057, allocations: 7.125 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.7057, allocations: 1.188 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.7057, allocations: 3.984 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.7057, allocations: 1.281 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.7059, allocations: 176.8 kB / 0.9536 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.7059, allocations: 0 / 0.9536 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.058e-05/0.7059, allocations: 11.02 kB / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.706, allocations: 0 / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.706, allocations: 1.281 kB / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.706, allocations: 0 / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.706, allocations: 4 kB / 0.9536 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/0.7062, allocations: 174.4 kB / 0.9537 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.894e-05/0.7063, allocations: 77.11 kB / 0.9538 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.7063, allocations: 5.531 kB / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.7064, allocations: 7.016 kB / 0.9538 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.485e-05/0.7064, allocations: 10.78 kB / 0.9538 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.7064, allocations: 1.156 kB / 0.9538 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.014e-05/0.7065, allocations: 87.27 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7065, allocations: 0 / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002231/0.7067, allocations: 5.625 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004406/0.7071, allocations: 0.7015 MB / 0.9546 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002263/0.7074, allocations: 47.7 kB / 0.9547 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7074, allocations: 0 / 0.9547 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.423e-05/0.7075, allocations: 25.94 kB / 0.9547 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.7077, allocations: 10.47 kB / 0.9547 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.7089, allocations: 1.245 MB / 0.9559 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.7091, allocations: 0.6837 MB / 0.9566 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.121e-05/0.7091, allocations: 6.656 kB / 0.9566 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.642e-05/0.7092, allocations: 18.27 kB / 0.9566 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.7092, allocations: 0 / 0.9566 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.7264, allocations: 1.498 MB / 0.9581 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/8.214, allocations: 13.75 kB / 0.9581 GB, free: 1.711 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_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_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches