Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002355/0.002355, allocations: 193 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.37/2.37, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.021/3.021, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 68.56 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4224, allocations: 157.4 MB / 1.052 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004418/0.4269, allocations: 1.841 MB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002374/0.4293, allocations: 1.091 MB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.911e-05/0.4294, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.4298, allocations: 51.8 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003252/0.4302, allocations: 67.81 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009259/0.4311, allocations: 211 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000297/0.4314, allocations: 147.6 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.4316, allocations: 17.12 kB / 1.056 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.4317, allocations: 71.69 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.4319, allocations: 63.75 kB / 1.056 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.974e-05/0.432, allocations: 8 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.4322, allocations: 59.97 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.4323, allocations: 51.77 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.4324, allocations: 59.61 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004018/0.4328, allocations: 191.7 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4328, allocations: 0 / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4329, allocations: 0 / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4329, allocations: 0 / 1.056 GB, free: 4.762 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008995/0.4338, allocations: 492.2 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.4338, allocations: 12.61 kB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.315e-05/0.4339, allocations: 38.75 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.332e-05/0.434, allocations: 20.75 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.4344, allocations: 244.9 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.4344, allocations: 4.375 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.4344, allocations: 15.86 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.4348, allocations: 96.17 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.4348, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.4348, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.4348, allocations: 4 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.435, allocations: 31.98 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.4357, allocations: 364.7 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.4361, allocations: 98.58 kB / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.4362, allocations: 32.83 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.4363, allocations: 8 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.4366, allocations: 79.38 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 2.304e-06/0.4366, allocations: 0 / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005455/0.4372, allocations: 137.4 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/0.4373, allocations: 110.8 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003936/0.4377, allocations: 262.9 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.4377, allocations: 29.7 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.4378, allocations: 120.1 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.12e-05/0.4379, allocations: 23.7 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-05/0.438, allocations: 25.72 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4382, allocations: 330.8 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.4383, allocations: 23.98 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.4384, allocations: 76.22 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.4387, allocations: 65.69 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4387, allocations: 0 / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003538/0.4391, allocations: 113.4 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.4391, allocations: 9.406 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.4391, allocations: 0 / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.4391, allocations: 0 / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.4393, allocations: 19.98 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.4393, allocations: 4.219 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.4394, allocations: 11.88 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.4394, allocations: 3.938 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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.000195/0.4396, allocations: 146.5 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.4397, allocations: 15.81 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.027e-05/0.4398, allocations: 21.39 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.4398, allocations: 0 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4398, allocations: 0 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4398, allocations: 7.938 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002827/0.4401, allocations: 221.6 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4401, allocations: 0 / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.139e-05/0.4402, allocations: 7.984 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4402, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.4402, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.4403, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.4403, allocations: 8 kB / 1.059 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.4407, allocations: 144.8 kB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.936e-05/0.4408, allocations: 92.92 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.441e-05/0.4408, allocations: 4 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.4409, allocations: 7.984 kB / 1.06 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.441, allocations: 15.88 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.441, allocations: 7.922 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00028/0.4413, allocations: 192.6 kB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4413, allocations: 0 / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004862/0.4418, allocations: 36 kB / 1.06 GB, free: 0.6289 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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002286/0.4441, allocations: 0.9956 MB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.4445, allocations: 79.88 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4445, allocations: 0 / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.4447, allocations: 35.92 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.4451, allocations: 39.97 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.4488, allocations: 1.965 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.4492, allocations: 0.7201 MB / 1.064 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001394/0.4494, allocations: 29.36 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.4495, allocations: 51.41 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of SimCode: time 7.91e-07/0.4495, allocations: 0 / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.021/4.47, allocations: 4.484 MB / 1.068 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/4.471, allocations: 255.4 kB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.764/7.235, allocations: 3.938 kB / 1.068 GB, free: 8.113 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches