Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_10_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.001188/0.001188, 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.001169/0.001169, allocations: 199.1 kB / 16.54 MB, free: 6.672 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.448/1.448, 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 10.1.1-maint.10.0.x/package.mo): time 2.634/2.634, allocations: 437.1 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 68.12 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7348/0.7364, allocations: 151.6 MB / 1.017 GB, free: 2.586 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.00234/0.7388, allocations: 0.6201 MB / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.7408, allocations: 1.116 MB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.653e-05/0.7409, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.7411, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.461e-05/0.7411, allocations: 7.922 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.742, allocations: 127.6 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.7422, allocations: 99.89 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.7424, allocations: 4 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.7425, allocations: 39.84 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.7426, allocations: 31.89 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.7427, allocations: 12 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.891e-05/0.7428, allocations: 16 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.7429, allocations: 7.984 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.041e-05/0.743, allocations: 35.91 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.7432, allocations: 90.02 kB / 1.02 GB, free: 384 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.7432, allocations: 0 / 1.02 GB, free: 384 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.404e-06/0.7432, allocations: 3.938 kB / 1.02 GB, free: 380 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.7432, allocations: 0 / 1.02 GB, free: 380 kB / 0.7637 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.0005694/0.7438, allocations: 389 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.7438, allocations: 8.031 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.7439, allocations: 34.75 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.515e-05/0.7439, allocations: 8.844 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.7441, allocations: 180.4 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.7441, allocations: 8.375 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.7442, allocations: 4.375 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.7443, allocations: 46.19 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.7443, allocations: 3.938 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.7443, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.7443, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.384e-05/0.7443, allocations: 15.98 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003416/0.7447, allocations: 308.8 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.339e-05/0.7447, allocations: 22.52 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.629e-05/0.7448, allocations: 8.859 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.7448, allocations: 0 / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/0.7449, allocations: 59.45 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.7449, allocations: 0 / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0001914/0.7451, allocations: 65.61 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.7452, allocations: 55.41 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.405e-05/0.7452, allocations: 113.8 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.7453, allocations: 25.7 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.935e-05/0.7453, allocations: 84.14 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.7453, allocations: 7.906 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.827e-05/0.7454, allocations: 33.7 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.7456, allocations: 322.8 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.072e-05/0.7456, allocations: 27.98 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.345e-05/0.7457, allocations: 46.56 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.7459, allocations: 88.73 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7459, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002643/0.7462, allocations: 135.3 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.568e-05/0.7462, allocations: 41.69 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.7462, allocations: 7.938 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.7463, allocations: 4 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.948e-05/0.7463, allocations: 0 / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.7463, allocations: 0 / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.7466, allocations: 27.91 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.7466, allocations: 12.09 kB / 1.022 GB, free: 13.94 MB / 0.7794 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 0.0001145/0.7467, allocations: 125.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.7467, allocations: 3.906 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.7468, allocations: 11.84 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.7468, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.7468, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.7468, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.747, allocations: 173.6 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.747, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-06/0.747, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.747, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.747, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.747, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.747, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.7471, allocations: 81.05 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.7472, allocations: 81.02 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.7472, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.763e-05/0.7472, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.7473, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.7473, allocations: 7.938 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.214e-05/0.7473, allocations: 87.27 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7473, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002137/0.7476, allocations: 12 kB / 1.022 GB, free: 13.25 MB / 0.7794 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.0003939/0.748, allocations: 0.6241 MB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.7482, allocations: 119.3 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7482, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.7482, allocations: 12 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.7484, allocations: 12.16 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.7499, allocations: 1.369 MB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.7501, allocations: 0.6884 MB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.307e-05/0.7501, allocations: 4.234 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.7502, allocations: 11.44 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7502, allocations: 0 / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.7686, allocations: 1.976 MB / 1.027 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/8.441, allocations: 10.64 kB / 1.027 GB, free: 8.387 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches