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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008044/0.008044, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.002273/0.002273, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.679/2.679, allocations: 472.7 MB / 0.7453 GB, free: 408 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 71.88 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7672/0.7686, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003423/0.7721, allocations: 1.771 MB / 1.227 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001931/0.7741, allocations: 1.1 MB / 1.228 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.7742, allocations: 4 kB / 1.228 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.7745, allocations: 55.73 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.7749, allocations: 83.66 kB / 1.228 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000713/0.7756, allocations: 226.5 kB / 1.228 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.7758, allocations: 143.7 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.7759, allocations: 32.94 kB / 1.229 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.776, allocations: 63.72 kB / 1.229 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.7762, allocations: 59.75 kB / 1.229 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.7762, allocations: 8 kB / 1.229 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.7764, allocations: 75.94 kB / 1.229 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.649e-05/0.7765, allocations: 43.78 kB / 1.229 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.226e-05/0.7765, allocations: 59.59 kB / 1.229 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.7769, allocations: 191 kB / 1.229 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.7769, allocations: 0 / 1.229 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7769, allocations: 4 kB / 1.229 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.7769, allocations: 0 / 1.229 GB, free: 9.539 MB / 0.9512 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.0006756/0.7776, allocations: 0.496 MB / 1.229 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.7776, allocations: 12.02 kB / 1.229 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.7777, allocations: 38.75 kB / 1.23 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.765e-05/0.7777, allocations: 20.84 kB / 1.23 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.7781, allocations: 256.9 kB / 1.23 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.7781, allocations: 384 / 1.23 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.7781, allocations: 15.92 kB / 1.23 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.7783, allocations: 100.1 kB / 1.23 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.7784, allocations: 0 / 1.23 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.7784, allocations: 0 / 1.23 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.7784, allocations: 4 kB / 1.23 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.7785, allocations: 31.97 kB / 1.23 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.779, allocations: 352.7 kB / 1.23 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.7792, allocations: 86.66 kB / 1.23 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.368e-05/0.7793, allocations: 28.84 kB / 1.23 GB, free: 7.934 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.7794, allocations: 4 kB / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.7795, allocations: 99.34 kB / 1.23 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.904e-06/0.7796, allocations: 0 / 1.23 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0003522/0.7799, allocations: 137.5 kB / 1.231 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.78, allocations: 106.8 kB / 1.231 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.7802, allocations: 266.9 kB / 1.231 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.7803, allocations: 25.7 kB / 1.231 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.076e-05/0.7803, allocations: 112.1 kB / 1.231 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.7804, allocations: 27.78 kB / 1.231 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.251e-05/0.7804, allocations: 33.7 kB / 1.231 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.7805, allocations: 330.8 kB / 1.231 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.42e-05/0.7806, allocations: 27.92 kB / 1.232 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.7807, allocations: 68.28 kB / 1.232 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.7809, allocations: 69.98 kB / 1.232 GB, free: 6.555 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7809, allocations: 8 kB / 1.232 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000224/0.7811, allocations: 109.5 kB / 1.232 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.7811, allocations: 9.094 kB / 1.232 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.7812, allocations: 0 / 1.232 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.7812, allocations: 0 / 1.232 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.64e-05/0.7813, allocations: 15.98 kB / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.7813, allocations: 0 / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.099e-05/0.7814, allocations: 16.08 kB / 1.232 GB, free: 6.395 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.7814, allocations: 0 / 1.232 GB, free: 6.395 MB / 0.9512 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.0001163/0.7815, allocations: 150.3 kB / 1.232 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.7815, allocations: 15.91 kB / 1.232 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.7816, allocations: 25.39 kB / 1.232 GB, free: 6.188 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.7816, allocations: 0 / 1.232 GB, free: 6.188 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.7816, allocations: 0 / 1.232 GB, free: 6.188 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.7816, allocations: 3.938 kB / 1.232 GB, free: 6.184 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.7818, allocations: 225.5 kB / 1.232 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.7818, allocations: 4 kB / 1.232 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.7819, allocations: 7.984 kB / 1.232 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.7819, allocations: 0 / 1.232 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.7819, allocations: 8 kB / 1.232 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.7819, allocations: 4 kB / 1.232 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.7819, allocations: 0 / 1.232 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.7822, allocations: 144.9 kB / 1.232 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.481e-05/0.7822, allocations: 96.95 kB / 1.232 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.7823, allocations: 0 / 1.232 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.99e-05/0.7823, allocations: 11.98 kB / 1.232 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.7824, allocations: 11.94 kB / 1.232 GB, free: 5.594 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.7824, allocations: 3.984 kB / 1.232 GB, free: 5.59 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001768/0.7826, allocations: 192.6 kB / 1.233 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7826, allocations: 0 / 1.233 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002671/0.7829, allocations: 43.91 kB / 1.233 GB, free: 5.359 MB / 0.9512 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.001443/0.7843, allocations: 0.9944 MB / 1.234 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.7846, allocations: 71.95 kB / 1.234 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7846, allocations: 4 kB / 1.234 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.502e-05/0.7847, allocations: 35.92 kB / 1.234 GB, free: 4.391 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.785, allocations: 42.84 kB / 1.234 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.7871, allocations: 1.96 MB / 1.236 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.7874, allocations: 0.7279 MB / 1.236 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.003e-05/0.7875, allocations: 17.08 kB / 1.236 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.7876, allocations: 47.42 kB / 1.237 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.7876, allocations: 4 kB / 1.237 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.8103, allocations: 4.695 MB / 1.241 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.909, allocations: 7.688 kB / 1.241 GB, free: 12.91 MB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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