Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_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.007209/0.007209, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001908/0.001908, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.684/2.684, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.89 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6613/0.6633, allocations: 159.1 MB / 1.22 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003051/0.6664, allocations: 1.766 MB / 1.222 GB, free: 212 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001795/0.6682, allocations: 1.111 MB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.077e-05/0.6683, allocations: 0 / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.6686, allocations: 55.73 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.6688, allocations: 79.67 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006183/0.6694, allocations: 226.2 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000217/0.6697, allocations: 147.7 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.6698, allocations: 29.09 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.6699, allocations: 63.7 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.67, allocations: 63.75 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.67, allocations: 4 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.6702, allocations: 71.95 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.407e-05/0.6703, allocations: 51.77 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.317e-05/0.6704, allocations: 51.67 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.6707, allocations: 198.9 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.6707, allocations: 0 / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.116e-06/0.6707, allocations: 4 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.6707, allocations: 0 / 1.224 GB, free: 14.07 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.0006877/0.6714, allocations: 0.4883 MB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.6715, allocations: 15.97 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/0.6715, allocations: 30.75 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.6716, allocations: 24.84 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.6719, allocations: 256.9 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.672, allocations: 4.375 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.672, allocations: 7.938 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.6722, allocations: 96.11 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.6722, allocations: 0 / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.6722, allocations: 4 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.6723, allocations: 8 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.6724, allocations: 31.97 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.6729, allocations: 352.7 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.6732, allocations: 86.66 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.169e-05/0.6733, allocations: 32.84 kB / 1.225 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.6733, allocations: 4 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.6735, allocations: 91.36 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.6735, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0003812/0.6739, allocations: 141.8 kB / 1.226 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.674, allocations: 106.8 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.6743, allocations: 258.9 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.6743, allocations: 33.7 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.613e-05/0.6744, allocations: 120.1 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.6744, allocations: 27.78 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.6745, allocations: 21.72 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6746, allocations: 330.8 kB / 1.226 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.9e-05/0.6747, allocations: 23.98 kB / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.6748, allocations: 76.22 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.675, allocations: 73.75 kB / 1.227 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.675, allocations: 0 / 1.227 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002305/0.6753, allocations: 113.5 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.6753, allocations: 8 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.6753, allocations: 0 / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.6753, allocations: 0 / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.6754, allocations: 15.98 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.6754, allocations: 4.031 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.748e-05/0.6755, allocations: 11.89 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.6755, allocations: 4 kB / 1.227 GB, free: 10.92 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.0001419/0.6757, allocations: 148.8 kB / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.6757, allocations: 15.91 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.803e-05/0.6758, allocations: 21.39 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.6758, allocations: 0 / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.6758, allocations: 192 / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.6758, allocations: 11.97 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.676, allocations: 229.5 kB / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.676, allocations: 0 / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.38e-05/0.6761, allocations: 7.984 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6761, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.6761, allocations: 4 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6761, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.6761, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.6764, allocations: 152.9 kB / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.6765, allocations: 93.02 kB / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.6765, allocations: 0 / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.865e-05/0.6766, allocations: 7.984 kB / 1.227 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.6766, allocations: 15.92 kB / 1.227 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.6766, allocations: 4 kB / 1.227 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001959/0.6768, allocations: 196.3 kB / 1.228 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6768, allocations: 4 kB / 1.228 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002555/0.6771, allocations: 35.92 kB / 1.228 GB, free: 9.895 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.001995/0.6791, allocations: 0.9951 MB / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.6794, allocations: 75.88 kB / 1.229 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6794, allocations: 0 / 1.229 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.6795, allocations: 39.92 kB / 1.229 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.6798, allocations: 44.7 kB / 1.229 GB, free: 8.883 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.6821, allocations: 1.952 MB / 1.231 GB, free: 6.848 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.6824, allocations: 0.7279 MB / 1.231 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.269e-05/0.6825, allocations: 21.08 kB / 1.231 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.716e-05/0.6826, allocations: 47.42 kB / 1.231 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.6826, allocations: 0 / 1.231 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.708, allocations: 4.706 MB / 1.236 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/8.36, allocations: 4.656 kB / 1.236 GB, free: 1.438 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches