Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ram.y|reaToInt.y|intRep.y.1.|intRep.y.2.|intRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ram.y|reaToInt.y|intRep.y.1.|intRep.y.2.|intRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001785/0.001785, allocations: 192.9 kB / 16.14 MB, free: 6.719 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.528/1.528, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.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.653/2.653, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 63.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7317/0.7332, allocations: 140.4 MB / 0.9489 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.002148/0.7354, allocations: 0.7291 MB / 0.9496 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.7368, allocations: 0.828 MB / 0.9504 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.7369, allocations: 1.656 kB / 0.9504 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.7371, allocations: 3.938 kB / 0.9505 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.794e-05/0.7372, allocations: 0 / 0.9505 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.7375, allocations: 21.14 kB / 0.9505 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.45e-05/0.7375, allocations: 33.34 kB / 0.9505 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.7377, allocations: 7.25 kB / 0.9505 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.574e-05/0.7377, allocations: 16.8 kB / 0.9505 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.254e-05/0.7378, allocations: 17.36 kB / 0.9505 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.7379, allocations: 2.719 kB / 0.9505 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.401e-05/0.7379, allocations: 5.344 kB / 0.9506 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.569e-05/0.738, allocations: 6.641 kB / 0.9506 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.738, allocations: 20.27 kB / 0.9506 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.213e-05/0.7381, allocations: 38.78 kB / 0.9506 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.7381, allocations: 0 / 0.9506 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7381, allocations: 0 / 0.9506 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.7381, allocations: 0 / 0.9506 GB, free: 7.844 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004569/0.7386, allocations: 346.4 kB / 0.9509 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.7387, allocations: 9.719 kB / 0.951 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.7387, allocations: 7.438 kB / 0.951 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.7389, allocations: 176.1 kB / 0.9511 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.7389, allocations: 1.656 kB / 0.9511 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.7389, allocations: 10.84 kB / 0.9511 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.7391, allocations: 59.97 kB / 0.9512 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.7392, allocations: 192 / 0.9512 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.7392, allocations: 7.938 kB / 0.9512 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.7392, allocations: 1.438 kB / 0.9512 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.7394, allocations: 44.38 kB / 0.9513 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003632/0.7398, allocations: 287.9 kB / 0.9515 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.7399, allocations: 36.31 kB / 0.9516 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.986e-05/0.74, allocations: 27.83 kB / 0.9516 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.74, allocations: 1.375 kB / 0.9516 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.7401, allocations: 34.56 kB / 0.9516 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.774e-06/0.7401, allocations: 1.375 kB / 0.9516 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004008/0.7405, allocations: 86.58 kB / 0.9517 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.7405, allocations: 52.78 kB / 0.9518 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.186e-05/0.7406, allocations: 107.3 kB / 0.9519 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.7406, allocations: 31.2 kB / 0.9519 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.7406, allocations: 90.81 kB / 0.952 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.7407, allocations: 5.281 kB / 0.952 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.7407, allocations: 20.45 kB / 0.952 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.856e-05/0.7407, allocations: 316.2 kB / 0.9523 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.995e-05/0.7408, allocations: 17.61 kB / 0.9523 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.606e-05/0.7409, allocations: 18.97 kB / 0.9523 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.7411, allocations: 49.45 kB / 0.9524 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.7411, allocations: 0 / 0.9524 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002206/0.7413, allocations: 70.61 kB / 0.9524 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.7414, allocations: 5.688 kB / 0.9525 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.7414, allocations: 0 / 0.9525 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.7414, allocations: 0 / 0.9525 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.7415, allocations: 15.17 kB / 0.9525 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.7415, allocations: 0 / 0.9525 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.728e-05/0.7416, allocations: 8.156 kB / 0.9525 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.7416, allocations: 0 / 0.9525 GB, free: 5.965 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0001312/0.7417, allocations: 121.2 kB / 0.9526 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.7418, allocations: 1.094 kB / 0.9526 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.69e-05/0.7418, allocations: 8.438 kB / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.7418, allocations: 0 / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7418, allocations: 5.062 kB / 0.9526 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.7418, allocations: 0 / 0.9526 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.742, allocations: 177.6 kB / 0.9528 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.742, allocations: 1.281 kB / 0.9528 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.398e-05/0.7421, allocations: 9.984 kB / 0.9528 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.7421, allocations: 0 / 0.9528 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.7421, allocations: 0.8438 kB / 0.9528 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.7421, allocations: 0 / 0.9528 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7421, allocations: 4.938 kB / 0.9528 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.7424, allocations: 173 kB / 0.953 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.7424, allocations: 82.53 kB / 0.953 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.7424, allocations: 0 / 0.953 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.172e-05/0.7425, allocations: 4.594 kB / 0.953 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.7426, allocations: 14 kB / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.7426, allocations: 0.9375 kB / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.757e-05/0.7426, allocations: 83.78 kB / 0.9531 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7426, allocations: 0 / 0.9531 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000244/0.7429, allocations: 9.125 kB / 0.9531 GB, free: 5.254 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: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001242/0.743, allocations: 105.3 kB / 0.9532 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002567/0.7433, allocations: 46.61 kB / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.7433, allocations: 1.375 kB / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.7434, allocations: 25.23 kB / 0.9533 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.7437, allocations: 2.719 kB / 0.9533 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.7441, allocations: 124.6 kB / 0.9534 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.7443, allocations: 0.6797 MB / 0.9541 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.855e-05/0.7444, allocations: 6.438 kB / 0.9541 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.412e-05/0.7444, allocations: 10.16 kB / 0.9541 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of SimCode: time 1.302e-06/0.7444, allocations: 3.938 kB / 0.9541 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of Templates: time 0.002866/0.7473, allocations: 0.5261 MB / 0.9546 GB, free: 4.004 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches