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.001605/0.001605, allocations: 108 kB / 15.61 MB, free: 152 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.001964/0.001964, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.832/2.832, allocations: 469.8 MB / 0.7424 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 69.67 kB / 0.9087 GB, free: 34.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2826, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003326/0.286, allocations: 1.774 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.2878, allocations: 1.099 MB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.024e-05/0.2879, allocations: 3.938 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002924/0.2882, allocations: 59.73 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.2885, allocations: 75.67 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.2891, allocations: 225.8 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.2893, allocations: 143.6 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2894, allocations: 17.12 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2895, allocations: 75.69 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.2897, allocations: 55.77 kB / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.2897, allocations: 15.94 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2898, allocations: 71.89 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.363e-05/0.2899, allocations: 35.89 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.525e-05/0.29, allocations: 59.62 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.2903, allocations: 199.7 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2903, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2903, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.265e-06/0.2903, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 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.0006362/0.291, allocations: 490 kB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.291, allocations: 12.03 kB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.744e-05/0.2911, allocations: 42.73 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.2911, allocations: 16.75 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.2914, allocations: 245 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.2915, allocations: 4.312 kB / 1.069 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.2915, allocations: 7.938 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.2917, allocations: 96.22 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2917, allocations: 0 / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2917, allocations: 4 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.2917, allocations: 7.984 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.2919, allocations: 31.92 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.2924, allocations: 360.6 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002352/0.2926, allocations: 98.69 kB / 1.069 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.587e-05/0.2927, allocations: 28.84 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.2927, allocations: 4 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.293, allocations: 83.31 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.293, allocations: 0 / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003657/0.2933, allocations: 133.7 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.2934, allocations: 114.8 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.2937, allocations: 266.9 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.2937, allocations: 25.7 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.704e-05/0.2938, allocations: 120.1 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.2939, allocations: 15.72 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.2939, allocations: 29.7 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.2941, allocations: 326.8 kB / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.541e-05/0.2942, allocations: 23.98 kB / 1.07 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.2943, allocations: 80.2 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.2944, allocations: 73.7 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2944, allocations: 0 / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002299/0.2947, allocations: 105.5 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2947, allocations: 13.39 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.2947, allocations: 4.031 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.2947, allocations: 0 / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.2948, allocations: 23.94 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2949, allocations: 0 / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.072e-05/0.2949, allocations: 15.86 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.295, allocations: 0 / 1.071 GB, free: 7.164 MB / 0.8262 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.000138/0.2951, allocations: 145.8 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.2951, allocations: 15.81 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.2952, allocations: 21.39 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2952, allocations: 4 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2952, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2952, allocations: 3.938 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.2954, allocations: 221.6 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2955, allocations: 0 / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.159e-05/0.2955, allocations: 4 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.2955, allocations: 0 / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.2955, allocations: 7.922 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2955, allocations: 7.938 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2955, allocations: 0 / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.2958, allocations: 144.8 kB / 1.071 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.2959, allocations: 92.92 kB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.2959, allocations: 4 kB / 1.071 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.709e-05/0.296, allocations: 4 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/0.296, allocations: 15.92 kB / 1.071 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2961, allocations: 4 kB / 1.071 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001991/0.2963, allocations: 192.6 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2963, allocations: 4 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002633/0.2965, allocations: 36 kB / 1.072 GB, free: 6.16 MB / 0.8262 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.002022/0.2986, allocations: 1.001 MB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002383/0.2988, allocations: 71.89 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2988, allocations: 4.062 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.659e-05/0.2989, allocations: 35.97 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.2993, allocations: 40.17 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.3016, allocations: 1.94 MB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.3019, allocations: 0.724 MB / 1.075 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.044e-05/0.302, allocations: 29.02 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.3021, allocations: 43.42 kB / 1.075 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3021, allocations: 0 / 1.075 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.3283, allocations: 4.609 MB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.512, allocations: 7.844 kB / 1.08 GB, free: 13.78 MB / 0.8419 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