Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: 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_10_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_10_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.001007/0.001007, allocations: 98.88 kB / 16.02 MB, free: 76 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.00135/0.00135, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.77/2.77, allocations: 437.8 MB / 0.7128 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003961, allocations: 12 kB / 0.8735 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6819/0.6823, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.0009384/0.6833, allocations: 405 kB / 1.024 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.6844, allocations: 0.8195 MB / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.177e-05/0.6844, allocations: 4 kB / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.389e-05/0.6845, allocations: 0 / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.08e-05/0.6846, allocations: 3.938 kB / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.6848, allocations: 19.98 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.291e-05/0.6849, allocations: 23.98 kB / 1.025 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.685, allocations: 15.94 kB / 1.025 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.232e-05/0.685, allocations: 15.91 kB / 1.025 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.296e-05/0.6851, allocations: 19.92 kB / 1.025 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.6851, allocations: 0 / 1.025 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-06/0.6852, allocations: 0 / 1.025 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.236e-05/0.6852, allocations: 7.984 kB / 1.025 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.676e-05/0.6853, allocations: 41.58 kB / 1.025 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.282e-05/0.6854, allocations: 27.92 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6854, allocations: 4 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6854, allocations: 4 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.6854, allocations: 0 / 1.025 GB, free: 14.43 MB / 0.7794 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.0005149/0.6859, allocations: 345.4 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.686, allocations: 12.03 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.686, allocations: 4.844 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.6862, allocations: 172.3 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.6863, allocations: 4.375 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.6863, allocations: 8.375 kB / 1.026 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.6865, allocations: 74.16 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.6865, allocations: 192 / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.6865, allocations: 3.938 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.6866, allocations: 0 / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.6868, allocations: 59.95 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.6872, allocations: 272.8 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.6874, allocations: 50.48 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.6875, allocations: 28.91 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.6875, allocations: 0 / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.6876, allocations: 34.56 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.6876, allocations: 4 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004328/0.688, allocations: 105.6 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.6881, allocations: 55.53 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.87e-05/0.6882, allocations: 113.8 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.6882, allocations: 25.7 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.6882, allocations: 87.98 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.6883, allocations: 7.969 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.6883, allocations: 17.72 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.6884, allocations: 314.8 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.6885, allocations: 31.97 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.865e-05/0.6886, allocations: 19.98 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.6888, allocations: 56.88 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.6888, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002338/0.6891, allocations: 81.59 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.6891, allocations: 4 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.6891, allocations: 4.031 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.6891, allocations: 0 / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.6893, allocations: 15.98 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.6893, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.218e-05/0.6893, allocations: 7.984 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.6894, allocations: 4 kB / 1.027 GB, free: 12.21 MB / 0.7794 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.0001246/0.6895, allocations: 114.3 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.6895, allocations: 8 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.6896, allocations: 3.125 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.6896, allocations: 0 / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6896, allocations: 0 / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6896, allocations: 3.938 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.6898, allocations: 173.5 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6898, allocations: 0 / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.754e-05/0.6899, allocations: 11.98 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.6899, allocations: 4 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.6899, allocations: 4 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6899, allocations: 0 / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6899, allocations: 3.984 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.6902, allocations: 187.3 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-05/0.6903, allocations: 81.05 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.6903, allocations: 0 / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.6904, allocations: 11.98 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.6905, allocations: 4 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.6905, allocations: 4 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.918e-05/0.6905, allocations: 83.27 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6905, allocations: 0 / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002227/0.6908, allocations: 8.031 kB / 1.028 GB, free: 11.43 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: 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.0001189/0.6909, allocations: 107.2 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.6911, allocations: 51.89 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6911, allocations: 4.062 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.6913, allocations: 27.92 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.6915, allocations: 8.734 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.6919, allocations: 148.7 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.6922, allocations: 0.6888 MB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.474e-05/0.6922, allocations: 11.44 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6922, allocations: 0 / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of Templates: time 0.002067/0.6943, allocations: 0.6652 MB / 1.029 GB, free: 9.656 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches