Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",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.01166/0.01166, allocations: 102 kB / 15.73 MB, free: 6.035 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.002397/0.002397, allocations: 196.2 kB / 16.68 MB, free: 5.953 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.242/2.242, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 67.89 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8753/0.8767, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001687/0.8784, allocations: 0.6376 MB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.8797, allocations: 1.112 MB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.231e-05/0.8798, allocations: 1.062 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.88, allocations: 4.5 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.458e-05/0.88, allocations: 5.5 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00051/0.8805, allocations: 124.1 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.8807, allocations: 95.17 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.876e-05/0.8808, allocations: 4.891 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.048e-05/0.8809, allocations: 34.02 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.881, allocations: 35.62 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.881, allocations: 8.812 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.8811, allocations: 29.09 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.781e-05/0.8812, allocations: 14.39 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.889e-05/0.8813, allocations: 27.62 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.8815, allocations: 88.45 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8815, allocations: 0 / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8815, allocations: 0 / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.8815, allocations: 1.094 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004267/0.8819, allocations: 383.2 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.882, allocations: 9.5 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.73e-05/0.882, allocations: 37.28 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.8821, allocations: 4.969 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.8822, allocations: 177.7 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.8822, allocations: 3.125 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.8823, allocations: 5.844 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.8824, allocations: 51.39 kB / 1.09 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.8824, allocations: 4.938 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.8824, allocations: 11.94 kB / 1.09 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.8824, allocations: 1.062 kB / 1.09 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.983e-05/0.8825, allocations: 13.25 kB / 1.09 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004406/0.8829, allocations: 303.5 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.847e-05/0.883, allocations: 26.22 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.667e-05/0.883, allocations: 8.562 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.8831, allocations: 3.938 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.8832, allocations: 60.84 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.813e-06/0.8833, allocations: 0 / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002268/0.8835, allocations: 68.59 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.8835, allocations: 52.5 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.8836, allocations: 106 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.8837, allocations: 28.44 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.817e-05/0.8837, allocations: 92.69 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.8838, allocations: 13.47 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.237e-05/0.8839, allocations: 30.89 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.375e-05/0.8839, allocations: 321.2 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.444e-05/0.884, allocations: 26.94 kB / 1.091 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.214e-05/0.8841, allocations: 49.22 kB / 1.091 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.8842, allocations: 83.73 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8842, allocations: 0 / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002539/0.8845, allocations: 151.5 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.8845, allocations: 35.03 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.8846, allocations: 0 / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.8846, allocations: 1.812 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.478e-05/0.8846, allocations: 2.25 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.8846, allocations: 1.953 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.8848, allocations: 27.59 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.8849, allocations: 9.5 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booPul.y,$PRE.booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 7.451e-05/0.8849, allocations: 117.4 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-06/0.8849, allocations: 1.562 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.885, allocations: 9.453 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.885, allocations: 1.875 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-06/0.885, allocations: 0 / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.885, allocations: 5.766 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.419e-05/0.8851, allocations: 166.8 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8851, allocations: 4.547 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-06/0.8851, allocations: 1.25 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.8851, allocations: 1.422 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.8851, allocations: 0.5156 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.8851, allocations: 4.719 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.8852, allocations: 0.8125 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.999e-05/0.8853, allocations: 84.53 kB / 1.092 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.8853, allocations: 81.95 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.8853, allocations: 1.359 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.455e-05/0.8853, allocations: 1.266 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.8854, allocations: 7.172 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.8854, allocations: 1.984 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.089e-05/0.8854, allocations: 85.3 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8854, allocations: 0 / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002206/0.8856, allocations: 15.92 kB / 1.092 GB, free: 1.227 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,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000355/0.886, allocations: 0.6255 MB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000216/0.8862, allocations: 120.1 kB / 1.093 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8862, allocations: 0 / 1.093 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.137e-05/0.8863, allocations: 16.62 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.8865, allocations: 6.266 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.888, allocations: 1.371 MB / 1.094 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.8883, allocations: 0.6845 MB / 1.095 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.463e-05/0.8883, allocations: 6.578 kB / 1.095 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.8884, allocations: 15 kB / 1.095 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of SimCode: time 2.7e-07/0.8884, allocations: 0 / 1.095 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.9073, allocations: 1.995 MB / 1.097 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/8.631, allocations: 6.031 kB / 1.097 GB, free: 14.15 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_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_BooleanScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches