Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_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.005413/0.005413, allocations: 99.11 kB / 15.73 MB, free: 6.051 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.001287/0.001287, allocations: 202.4 kB / 16.68 MB, free: 5.965 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: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.3 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.83 kB / 0.9504 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2677, allocations: 140.4 MB / 1.087 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00333/0.2711, allocations: 1.763 MB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.273, allocations: 1.109 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2732, allocations: 8 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003709/0.2736, allocations: 55.73 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.2739, allocations: 71.67 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007478/0.2747, allocations: 236.9 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.2749, allocations: 143.7 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.2751, allocations: 29.08 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.2752, allocations: 67.77 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.2753, allocations: 63.69 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.2754, allocations: 8 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.2756, allocations: 71.94 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.45e-05/0.2757, allocations: 43.84 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.273e-05/0.2757, allocations: 59.55 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.2761, allocations: 195.5 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2761, allocations: 0 / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2762, allocations: 4 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.2762, allocations: 3.938 kB / 1.091 GB, free: 14.07 MB / 0.8575 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.0007371/0.2769, allocations: 0.4922 MB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.277, allocations: 8.031 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.635e-05/0.277, allocations: 34.75 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.973e-05/0.2771, allocations: 20.8 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2775, allocations: 256.9 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.2775, allocations: 384 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.2775, allocations: 15.94 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.2777, allocations: 96.16 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.2778, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.2778, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.2778, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.2779, allocations: 35.97 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005218/0.2784, allocations: 352.7 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.2787, allocations: 90.69 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.254e-05/0.2788, allocations: 28.84 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2788, allocations: 4 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.279, allocations: 87.36 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.764e-06/0.279, allocations: 3.938 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0003895/0.2794, allocations: 141.5 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.2795, allocations: 106.8 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.2798, allocations: 262.9 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.2798, allocations: 29.7 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.502e-05/0.2799, allocations: 120 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.2799, allocations: 19.89 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.28, allocations: 29.72 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2801, allocations: 330.8 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.993e-05/0.2802, allocations: 23.98 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.2803, allocations: 72.22 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2805, allocations: 69.86 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2805, allocations: 8 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002334/0.2807, allocations: 117.5 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2807, allocations: 8 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2807, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2808, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2809, allocations: 15.98 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2809, allocations: 0 / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.18e-05/0.281, allocations: 11.89 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.281, allocations: 0 / 1.094 GB, free: 10.93 MB / 0.8575 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.0001277/0.2811, allocations: 149.8 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.2812, allocations: 19.84 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.2812, allocations: 25.42 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.2812, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2812, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2812, allocations: 3.938 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.2814, allocations: 225.6 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2814, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.414e-05/0.2815, allocations: 7.984 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2815, allocations: 4 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.2815, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2815, allocations: 7.938 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2815, allocations: 0 / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/0.2818, allocations: 140.9 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.2819, allocations: 97.02 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.2819, allocations: 0 / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.285e-05/0.282, allocations: 7.984 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.328e-05/0.282, allocations: 23.86 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.282, allocations: 0 / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000172/0.2822, allocations: 192.6 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2822, allocations: 0 / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002733/0.2825, allocations: 39.92 kB / 1.095 GB, free: 9.914 MB / 0.8575 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.001472/0.284, allocations: 0.9917 MB / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002349/0.2842, allocations: 79.88 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2843, allocations: 0 / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.2844, allocations: 31.98 kB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.2847, allocations: 35.91 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.2869, allocations: 1.948 MB / 1.098 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.2872, allocations: 0.7278 MB / 1.099 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.664e-05/0.2873, allocations: 21.38 kB / 1.099 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.744e-05/0.2874, allocations: 51.42 kB / 1.099 GB, free: 6.051 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.2874, allocations: 4 kB / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02069/0.3081, allocations: 4.691 MB / 1.103 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/7.963, allocations: 16.05 kB / 1.103 GB, free: 1.426 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches