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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009666/0.0009666, allocations: 92.62 kB / 16.02 MB, free: 80 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.0009774/0.0009779, allocations: 175.7 kB / 16.92 MB, free: 6.652 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.425/1.425, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003991, allocations: 12 kB / 0.8166 GB, free: 13.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8167/0.8171, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.0007486/0.8179, allocations: 355.1 kB / 0.9561 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.8192, allocations: 1.113 MB / 0.9571 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.8192, allocations: 5.406 kB / 0.9572 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.873e-05/0.8193, allocations: 0 / 0.9572 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.488e-05/0.8194, allocations: 4.969 kB / 0.9572 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.8198, allocations: 120.3 kB / 0.9573 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.931e-05/0.8199, allocations: 75.8 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.634e-05/0.82, allocations: 3.156 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.733e-05/0.82, allocations: 36.59 kB / 0.9574 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.8201, allocations: 18.66 kB / 0.9574 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.8202, allocations: 8.531 kB / 0.9574 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.066e-05/0.8202, allocations: 22.52 kB / 0.9574 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.612e-05/0.8203, allocations: 8.391 kB / 0.9574 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.872e-05/0.8204, allocations: 59.73 kB / 0.9575 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.8205, allocations: 54.7 kB / 0.9575 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8205, allocations: 1.031 kB / 0.9575 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8205, allocations: 0 / 0.9575 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.8205, allocations: 0 / 0.9575 GB, free: 6.344 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003455/0.8209, allocations: 371.1 kB / 0.9579 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.8209, allocations: 8.938 kB / 0.9579 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.821, allocations: 13.44 kB / 0.9579 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.8211, allocations: 183.1 kB / 0.9581 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.8211, allocations: 6.625 kB / 0.9581 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.8212, allocations: 5.938 kB / 0.9581 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.8213, allocations: 46.5 kB / 0.9582 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.8213, allocations: 1.188 kB / 0.9582 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.8213, allocations: 3.938 kB / 0.9582 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.8213, allocations: 0.875 kB / 0.9582 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.688e-05/0.8214, allocations: 18.33 kB / 0.9582 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003114/0.8217, allocations: 303.4 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.408e-05/0.8217, allocations: 26.83 kB / 0.9585 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.516e-05/0.8218, allocations: 6.234 kB / 0.9585 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.8218, allocations: 1.406 kB / 0.9585 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.8219, allocations: 69.27 kB / 0.9586 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.8219, allocations: 0 / 0.9586 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0001879/0.8221, allocations: 63.14 kB / 0.9586 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.8222, allocations: 52.59 kB / 0.9587 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.283e-05/0.8222, allocations: 105.7 kB / 0.9588 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.8223, allocations: 27.8 kB / 0.9588 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.8223, allocations: 91.52 kB / 0.9589 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.135e-05/0.8223, allocations: 8.781 kB / 0.9589 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.8224, allocations: 18.09 kB / 0.9589 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.873e-05/0.8224, allocations: 323.8 kB / 0.9592 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.181e-05/0.8225, allocations: 31.14 kB / 0.9593 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.878e-05/0.8226, allocations: 43.59 kB / 0.9593 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.388e-05/0.8227, allocations: 80.2 kB / 0.9594 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.8227, allocations: 1.312 kB / 0.9594 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002226/0.8229, allocations: 145.5 kB / 0.9595 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.823, allocations: 41.31 kB / 0.9596 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.823, allocations: 0 / 0.9596 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.823, allocations: 1.281 kB / 0.9596 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.701e-05/0.823, allocations: 5.328 kB / 0.9596 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.823, allocations: 1.344 kB / 0.9596 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.8233, allocations: 41.81 kB / 0.9596 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/0.8233, allocations: 9.484 kB / 0.9596 GB, free: 4.242 MB / 0.7169 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.411e-05/0.8234, allocations: 123.5 kB / 0.9597 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.8234, allocations: 5.844 kB / 0.9597 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.8234, allocations: 7.844 kB / 0.9597 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.8234, allocations: 0 / 0.9597 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.8234, allocations: 1.969 kB / 0.9597 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.8234, allocations: 4 kB / 0.9597 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.252e-05/0.8235, allocations: 169.4 kB / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8235, allocations: 0 / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.8235, allocations: 320 / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8236, allocations: 1.781 kB / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.8236, allocations: 0 / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.8236, allocations: 4 kB / 0.9599 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.8236, allocations: 1.625 kB / 0.9599 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.986e-05/0.8237, allocations: 86.77 kB / 0.96 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.8237, allocations: 81.11 kB / 0.9601 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.8237, allocations: 1.375 kB / 0.9601 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.329e-05/0.8237, allocations: 0 / 0.9601 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.8238, allocations: 9.359 kB / 0.9601 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.8238, allocations: 1.531 kB / 0.9601 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.534e-05/0.8238, allocations: 83.97 kB / 0.9602 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8238, allocations: 0 / 0.9602 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002065/0.824, allocations: 14.84 kB / 0.9602 GB, free: 3.613 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: 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.0001399/0.8242, allocations: 108.1 kB / 0.9603 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001981/0.8244, allocations: 126.4 kB / 0.9604 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.8244, allocations: 0 / 0.9604 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.076e-05/0.8244, allocations: 11.59 kB / 0.9604 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.8246, allocations: 13.16 kB / 0.9604 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002866/0.8249, allocations: 176.2 kB / 0.9606 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001111/0.825, allocations: 0.6841 MB / 0.9613 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.374e-05/0.8251, allocations: 9.312 kB / 0.9613 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8251, allocations: 0 / 0.9613 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of Templates: time 0.002502/0.8276, allocations: 0.9055 MB / 0.9622 GB, free: 2.062 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/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