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.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.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.001119/0.00112, allocations: 86.02 kB / 15.06 MB, free: 1.09 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.001439/0.001439, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.434 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.498/2.498, allocations: 390.9 MB / 0.666 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004222, allocations: 16 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7404/0.7408, allocations: 142.4 MB / 0.9545 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.0009059/0.7418, allocations: 382.9 kB / 0.9548 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.7428, allocations: 0.8216 MB / 0.9556 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.808e-05/0.7429, allocations: 1.125 kB / 0.9556 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.661e-05/0.743, allocations: 3.984 kB / 0.9556 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.093e-05/0.743, allocations: 1.062 kB / 0.9556 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.7432, allocations: 20.14 kB / 0.9556 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.958e-05/0.7433, allocations: 30.86 kB / 0.9557 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.855e-05/0.7434, allocations: 12.83 kB / 0.9557 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.258e-05/0.7434, allocations: 8.578 kB / 0.9557 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.75e-05/0.7435, allocations: 16.64 kB / 0.9557 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.7435, allocations: 1.156 kB / 0.9557 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.7435, allocations: 1.062 kB / 0.9557 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.7436, allocations: 7.594 kB / 0.9557 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.7436, allocations: 31.8 kB / 0.9558 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.569e-05/0.7437, allocations: 29.59 kB / 0.9558 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.7437, allocations: 7.938 kB / 0.9558 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.294e-06/0.7437, allocations: 1.438 kB / 0.9558 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.7437, allocations: 0 / 0.9558 GB, free: 6.832 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.0004273/0.7441, allocations: 344.2 kB / 0.9561 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.7442, allocations: 9 kB / 0.9561 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.7442, allocations: 10.23 kB / 0.9561 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.7444, allocations: 174.1 kB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.7444, allocations: 6.281 kB / 0.9563 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.7444, allocations: 1.281 kB / 0.9563 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.7446, allocations: 72.94 kB / 0.9564 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.7447, allocations: 3.984 kB / 0.9564 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.7447, allocations: 4 kB / 0.9564 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.7447, allocations: 1.094 kB / 0.9564 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.7449, allocations: 57.69 kB / 0.9564 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003402/0.7452, allocations: 272.3 kB / 0.9567 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.7454, allocations: 50.19 kB / 0.9568 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.53e-05/0.7455, allocations: 31.98 kB / 0.9568 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.7455, allocations: 1.344 kB / 0.9568 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.7455, allocations: 38.52 kB / 0.9568 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.7455, allocations: 0.8125 kB / 0.9568 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003485/0.7459, allocations: 101 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.7459, allocations: 60.69 kB / 0.957 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.746, allocations: 104.2 kB / 0.9571 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.746, allocations: 29.7 kB / 0.9571 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/0.746, allocations: 90.48 kB / 0.9572 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.7461, allocations: 1.125 kB / 0.9572 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-06/0.7461, allocations: 0 / 0.9572 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.382e-05/0.7461, allocations: 319.9 kB / 0.9575 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.793e-05/0.7462, allocations: 23.61 kB / 0.9575 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.673e-05/0.7463, allocations: 21.95 kB / 0.9575 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.87e-05/0.7464, allocations: 27.31 kB / 0.9576 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7464, allocations: 5.344 kB / 0.9576 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002047/0.7466, allocations: 79.47 kB / 0.9576 GB, free: 5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.7467, allocations: 9.859 kB / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.7467, allocations: 0 / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.7467, allocations: 1.312 kB / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.7468, allocations: 20.86 kB / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.7468, allocations: 0 / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.333e-05/0.7469, allocations: 13.39 kB / 0.9577 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.7469, allocations: 1.344 kB / 0.9577 GB, free: 4.977 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.747, allocations: 113.6 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.432e-05/0.747, allocations: 1.219 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.047e-05/0.747, allocations: 7.078 kB / 0.9578 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.7471, allocations: 5.406 kB / 0.9578 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7471, allocations: 256 / 0.9578 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.7471, allocations: 0 / 0.9578 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.7472, allocations: 173.8 kB / 0.958 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7472, allocations: 1.094 kB / 0.958 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.907e-05/0.7473, allocations: 12.05 kB / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.7473, allocations: 1.031 kB / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.7473, allocations: 0 / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.7473, allocations: 5.234 kB / 0.958 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.7473, allocations: 4 kB / 0.958 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.7475, allocations: 178.3 kB / 0.9582 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.782e-05/0.7476, allocations: 78.08 kB / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.7476, allocations: 5.312 kB / 0.9582 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.916e-05/0.7477, allocations: 9.766 kB / 0.9583 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/0.7477, allocations: 11.02 kB / 0.9583 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.7477, allocations: 1.469 kB / 0.9583 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.601e-05/0.7478, allocations: 85.89 kB / 0.9584 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7478, allocations: 1.594 kB / 0.9584 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000223/0.748, allocations: 8.031 kB / 0.9584 GB, free: 4.273 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.7481, allocations: 105.2 kB / 0.9585 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000217/0.7484, allocations: 53.08 kB / 0.9585 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7484, allocations: 0 / 0.9585 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.401e-05/0.7485, allocations: 30.3 kB / 0.9585 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.7487, allocations: 9.891 kB / 0.9586 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002776/0.749, allocations: 118.4 kB / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.7491, allocations: 0.6801 MB / 0.9593 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.106e-05/0.7492, allocations: 5.875 kB / 0.9593 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.7492, allocations: 9.25 kB / 0.9593 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/0.7492, allocations: 1.781 kB / 0.9593 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of Templates: time 0.002811/0.752, allocations: 0.5083 MB / 0.9598 GB, free: 3.035 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