Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001272/0.001272, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001274/0.001274, allocations: 192.2 kB / 16.25 MB, free: 6.625 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.529/1.529, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.957/2.957, allocations: 469.8 MB / 0.742 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 68.25 kB / 0.908 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3256, allocations: 159.2 MB / 1.063 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.002065/0.3277, allocations: 0.6856 MB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.3292, allocations: 1.114 MB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.7e-05/0.3293, allocations: 3.938 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.3294, allocations: 7.984 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.595e-05/0.3294, allocations: 7.922 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.3299, allocations: 111.7 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.3301, allocations: 91.77 kB / 1.065 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.757e-05/0.3302, allocations: 8 kB / 1.065 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.073e-05/0.3303, allocations: 39.95 kB / 1.065 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.014e-05/0.3304, allocations: 23.91 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.3304, allocations: 8 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.719e-05/0.3305, allocations: 23.98 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.636e-05/0.3305, allocations: 8 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.359e-05/0.3306, allocations: 35.83 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.3308, allocations: 91.78 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3308, allocations: 0 / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3308, allocations: 0 / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.3308, allocations: 0 / 1.066 GB, free: 12.33 MB / 0.8262 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.0005323/0.3314, allocations: 381.4 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3314, allocations: 8.031 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.3315, allocations: 8.938 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.3317, allocations: 180.4 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3317, allocations: 8.312 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.3317, allocations: 4.375 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.3319, allocations: 42.25 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3319, allocations: 192 / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3319, allocations: 7.922 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.3319, allocations: 11.94 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.096e-05/0.332, allocations: 11.98 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.3324, allocations: 312.6 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.362e-05/0.3325, allocations: 18.58 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.099e-05/0.3325, allocations: 16.84 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.3325, allocations: 4 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.3327, allocations: 51.47 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.3327, allocations: 0 / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0001989/0.3329, allocations: 73.52 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.333, allocations: 51.41 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3331, allocations: 113.8 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.3331, allocations: 25.7 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.3332, allocations: 88.14 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.116e-05/0.3332, allocations: 7.906 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.575e-05/0.3333, allocations: 33.7 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3334, allocations: 318.8 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.548e-05/0.3335, allocations: 35.92 kB / 1.067 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.042e-05/0.3336, allocations: 42.56 kB / 1.067 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.3337, allocations: 88.2 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3337, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002475/0.334, allocations: 147.2 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.334, allocations: 37.69 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.334, allocations: 4 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3341, allocations: 0 / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.732e-05/0.3341, allocations: 0 / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.3341, allocations: 4 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.3343, allocations: 32 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.364e-05/0.3344, allocations: 7.984 kB / 1.068 GB, free: 9.93 MB / 0.8262 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.0001039/0.3345, allocations: 121.7 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.3345, allocations: 4 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.56e-05/0.3345, allocations: 3.906 kB / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3345, allocations: 0 / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3345, allocations: 0 / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3346, allocations: 0 / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.3347, allocations: 173.6 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3347, allocations: 0 / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.481e-06/0.3347, allocations: 0 / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3347, allocations: 4 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-06/0.3348, allocations: 0 / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3348, allocations: 0 / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3348, allocations: 0 / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.3349, allocations: 85.19 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.335, allocations: 89.05 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.335, allocations: 3.984 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.534e-05/0.335, allocations: 4.297 kB / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.335, allocations: 0 / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.335, allocations: 11.98 kB / 1.068 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.281e-05/0.3351, allocations: 83.28 kB / 1.068 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3351, allocations: 0 / 1.068 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002087/0.3353, allocations: 20 kB / 1.068 GB, free: 9.238 MB / 0.8262 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.000166/0.3355, allocations: 107.2 kB / 1.068 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002265/0.3357, allocations: 131.2 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3357, allocations: 0 / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.025e-05/0.3358, allocations: 12 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.336, allocations: 7.984 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003059/0.3363, allocations: 134.2 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.3366, allocations: 0.6807 MB / 1.069 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.955e-05/0.3367, allocations: 4 kB / 1.069 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.552e-05/0.3367, allocations: 7.438 kB / 1.069 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3367, allocations: 0 / 1.069 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.003902/0.3406, allocations: 1.048 MB / 1.07 GB, free: 7.051 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches