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: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002/0.002, allocations: 197.8 kB / 16.14 MB, free: 6.719 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.479/1.479, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.841/2.841, allocations: 472.7 MB / 0.7447 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.5 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3185, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004756/0.3233, allocations: 1.833 MB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002673/0.3261, allocations: 1.091 MB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.3263, allocations: 3.938 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004587/0.3268, allocations: 51.86 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003586/0.3272, allocations: 67.75 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.328, allocations: 203.1 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.3283, allocations: 131.6 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.3285, allocations: 21.11 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.3287, allocations: 59.7 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.3289, allocations: 67.69 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.3289, allocations: 4 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.3292, allocations: 55.97 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.3293, allocations: 35.89 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.3294, allocations: 55.61 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.3298, allocations: 191.7 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3298, allocations: 0 / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.847e-06/0.3298, allocations: 7.938 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.3298, allocations: 0 / 1.071 GB, free: 6.918 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.0008429/0.3307, allocations: 492.3 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3307, allocations: 12.03 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.3308, allocations: 12.75 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.3312, allocations: 245 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3312, allocations: 4.375 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.3314, allocations: 12.06 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.3317, allocations: 92.22 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3317, allocations: 4 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.3317, allocations: 4 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.3317, allocations: 0 / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.3319, allocations: 35.92 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/0.3326, allocations: 360.6 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.333, allocations: 90.69 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3331, allocations: 32.84 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.3332, allocations: 7.922 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.3335, allocations: 79.38 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/0.3335, allocations: 0 / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005419/0.3341, allocations: 153.4 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.3342, allocations: 110.7 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.3346, allocations: 266.8 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3346, allocations: 25.7 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3348, allocations: 112.1 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.3348, allocations: 23.7 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.3349, allocations: 25.72 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.335, allocations: 334.8 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.3352, allocations: 27.98 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3353, allocations: 64.28 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.3355, allocations: 73.62 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3355, allocations: 4 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003262/0.3359, allocations: 113.5 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3359, allocations: 8 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3359, allocations: 0 / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.336, allocations: 4 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3361, allocations: 11.94 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3361, allocations: 7.984 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.885e-05/0.3362, allocations: 7.875 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.3362, allocations: 8 kB / 1.074 GB, free: 3.836 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.0002719/0.3365, allocations: 147.3 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.3366, allocations: 19.81 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.945e-05/0.3366, allocations: 21.39 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.3367, allocations: 4 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3367, allocations: 0 / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.3367, allocations: 3.938 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.337, allocations: 217.5 kB / 1.074 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.337, allocations: 0 / 1.074 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.947e-05/0.3371, allocations: 11.98 kB / 1.074 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3371, allocations: 3.938 kB / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3371, allocations: 0 / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.3371, allocations: 0 / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3371, allocations: 7.938 kB / 1.074 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.3375, allocations: 148.8 kB / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.658e-05/0.3376, allocations: 85.02 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.3377, allocations: 4 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.3377, allocations: 8.172 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.3378, allocations: 4 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.3379, allocations: 15.86 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003336/0.3382, allocations: 195.2 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3382, allocations: 0 / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003891/0.3386, allocations: 35.91 kB / 1.075 GB, free: 2.828 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.001057/0.3397, allocations: 427.3 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.3399, allocations: 71.89 kB / 1.075 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3399, allocations: 0 / 1.075 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.605e-05/0.34, allocations: 39.98 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3404, allocations: 40.16 kB / 1.076 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006528/0.341, allocations: 320.7 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.3415, allocations: 0.7243 MB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.862e-05/0.3416, allocations: 29.05 kB / 1.077 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.3416, allocations: 19.44 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of SimCode: time 4.41e-07/0.3416, allocations: 0 / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of Templates: time 0.007039/0.3487, allocations: 2.446 MB / 1.079 GB, free: 14.86 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches