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.001572/0.001572, 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.002177/0.002177, allocations: 194.8 kB / 16.53 MB, free: 6.699 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 472.7 MB / 0.7452 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 69.73 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3275, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003966/0.3315, allocations: 1.767 MB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001984/0.3335, allocations: 1.114 MB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.3337, allocations: 0 / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.3341, allocations: 63.61 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.3344, allocations: 71.67 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.3352, allocations: 226.8 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000268/0.3354, allocations: 147.6 kB / 1.072 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.3356, allocations: 25.09 kB / 1.072 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.3357, allocations: 59.77 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.3359, allocations: 63.75 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.3359, allocations: 15.94 kB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.3361, allocations: 63.91 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.046e-05/0.3362, allocations: 35.91 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.003e-05/0.3363, allocations: 59.59 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.3367, allocations: 199.7 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3367, allocations: 0 / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3367, allocations: 0 / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.265e-06/0.3367, allocations: 0 / 1.072 GB, free: 6.461 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.0008134/0.3375, allocations: 0.4885 MB / 1.073 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3376, allocations: 8.031 kB / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.773e-05/0.3376, allocations: 20.75 kB / 1.073 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.338, allocations: 245 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.338, allocations: 4.359 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.338, allocations: 12.12 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/0.3383, allocations: 92.17 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3383, allocations: 0 / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.3383, allocations: 0 / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.3383, allocations: 8 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.3385, allocations: 35.97 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.3391, allocations: 356.5 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.3393, allocations: 86.66 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.779e-05/0.3394, allocations: 36.84 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.3394, allocations: 0 / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.3397, allocations: 87.39 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.994e-06/0.3397, allocations: 0 / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003742/0.3401, allocations: 137.7 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.3402, allocations: 102.8 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.3404, allocations: 266.8 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3405, allocations: 33.64 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.321e-05/0.3406, allocations: 120.1 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.3406, allocations: 27.69 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.3407, allocations: 21.72 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.3408, allocations: 334.8 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.421e-05/0.3409, allocations: 27.98 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.341, allocations: 72.22 kB / 1.075 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.3411, allocations: 73.75 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3411, allocations: 0 / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002413/0.3414, allocations: 113.4 kB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3414, allocations: 4 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3414, allocations: 0 / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3414, allocations: 0 / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.827e-05/0.3415, allocations: 24.02 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3416, allocations: 0 / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.088e-05/0.3416, allocations: 11.88 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.3417, allocations: 4 kB / 1.075 GB, free: 3.379 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.0001373/0.3418, allocations: 148.9 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.3418, allocations: 15.81 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.917e-05/0.3419, allocations: 21.39 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3419, allocations: 0 / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3419, allocations: 0 / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.3419, allocations: 11.98 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.3422, allocations: 229.5 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3422, allocations: 0 / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.161e-05/0.3422, allocations: 7.984 kB / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3422, allocations: 0 / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3422, allocations: 4 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3422, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3422, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.3425, allocations: 148.8 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.816e-05/0.3426, allocations: 89.02 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.3426, allocations: 0 / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.3427, allocations: 15.91 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/0.3427, allocations: 8 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.3428, allocations: 11.92 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001768/0.3429, allocations: 188.8 kB / 1.076 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.343, allocations: 4 kB / 1.076 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002607/0.3432, allocations: 43.83 kB / 1.076 GB, free: 2.359 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.001029/0.3443, allocations: 415.3 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.3445, allocations: 83.88 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3445, allocations: 0 / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.199e-05/0.3446, allocations: 31.98 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.3449, allocations: 39.28 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000573/0.3455, allocations: 298.9 kB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.3458, allocations: 0.7279 MB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.509e-05/0.3459, allocations: 25.31 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.682e-05/0.346, allocations: 19.44 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.346, allocations: 3.938 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of Templates: time 0.006342/0.3523, allocations: 2.534 MB / 1.08 GB, free: 14.33 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