Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: 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_latest_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_latest_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.007283/0.007283, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001727/0.001727, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.496/1.496, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.809/2.809, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 66.09 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3748, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.002312/0.3772, allocations: 0.6767 MB / 1.053 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.3787, allocations: 1.127 MB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.312e-05/0.3788, allocations: 0 / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.655e-05/0.3789, allocations: 0 / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.098e-05/0.379, allocations: 15.84 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.3794, allocations: 114.5 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.3796, allocations: 79.83 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.082e-05/0.3796, allocations: 4 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.859e-05/0.3797, allocations: 39.95 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.769e-05/0.3798, allocations: 19.91 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.3798, allocations: 8 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.4e-05/0.3799, allocations: 15.98 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.211e-05/0.38, allocations: 7.938 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.38, allocations: 35.89 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.3802, allocations: 59.89 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3802, allocations: 0 / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3802, allocations: 4 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.3802, allocations: 0 / 1.055 GB, free: 6.078 MB / 0.8106 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.0004896/0.3807, allocations: 389.3 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3808, allocations: 11.97 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.3808, allocations: 4.938 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.381, allocations: 184.3 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.381, allocations: 4.375 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.381, allocations: 12.36 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.957e-05/0.3812, allocations: 42.25 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3812, allocations: 4.188 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.3812, allocations: 3.938 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3812, allocations: 4 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.157e-05/0.3812, allocations: 8 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.3816, allocations: 312.6 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.806e-05/0.3817, allocations: 22.56 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.508e-05/0.3817, allocations: 8.859 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.245e-06/0.3817, allocations: 0 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.3819, allocations: 67.38 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.3819, allocations: 0 / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0001777/0.382, allocations: 65.61 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3821, allocations: 55.41 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.182e-05/0.3822, allocations: 109.8 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3822, allocations: 33.7 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3823, allocations: 88.14 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.3823, allocations: 3.906 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.3824, allocations: 37.69 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3825, allocations: 318.8 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.285e-05/0.3826, allocations: 27.98 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.911e-05/0.3826, allocations: 46.56 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.3828, allocations: 84.2 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3828, allocations: 3.938 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002546/0.383, allocations: 143.3 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.3831, allocations: 38.78 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3831, allocations: 4 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.3831, allocations: 0 / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.56e-05/0.3831, allocations: 0 / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.3831, allocations: 4.094 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.3834, allocations: 31.88 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.3834, allocations: 11.92 kB / 1.057 GB, free: 3.668 MB / 0.8106 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 8.359e-05/0.3835, allocations: 117.8 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.3835, allocations: 4 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.119e-05/0.3835, allocations: 3.906 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.3835, allocations: 3.984 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3836, allocations: 4.312 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3836, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.3837, allocations: 165.6 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3837, allocations: 0 / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.857e-06/0.3837, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3837, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.3837, allocations: 7.984 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3837, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3837, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.3839, allocations: 85 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.3839, allocations: 88.95 kB / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.3839, allocations: 0 / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.422e-05/0.3839, allocations: 0 / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.384, allocations: 3.984 kB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.384, allocations: 4 kB / 1.057 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.026e-05/0.384, allocations: 83.28 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.384, allocations: 0 / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002175/0.3843, allocations: 16 kB / 1.058 GB, free: 2.988 MB / 0.8106 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.0001438/0.3844, allocations: 111.2 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002138/0.3846, allocations: 127.2 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3846, allocations: 0 / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.041e-05/0.3847, allocations: 8 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.3849, allocations: 11.98 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003045/0.3852, allocations: 158.1 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.3855, allocations: 0.6848 MB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.029e-05/0.3855, allocations: 11.44 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3855, allocations: 0 / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of Templates: time 0.002499/0.388, allocations: 0.9066 MB / 1.06 GB, free: 0.9062 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches