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: 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_9_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_9_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.001242/0.001242, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001271/0.001272, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.594 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.517/2.517, allocations: 390.2 MB / 0.6642 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 63.89 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8767/0.8791, allocations: 140.4 MB / 0.9489 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002705/0.8818, allocations: 1.829 MB / 0.9507 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001313/0.8831, allocations: 1.09 MB / 0.9518 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.885e-05/0.8833, allocations: 1.406 kB / 0.9518 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.8835, allocations: 57.95 kB / 0.9518 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.8837, allocations: 60.44 kB / 0.9519 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.8843, allocations: 196.2 kB / 0.9521 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.8844, allocations: 140.7 kB / 0.9522 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.748e-05/0.8845, allocations: 26.97 kB / 0.9522 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.117e-05/0.8846, allocations: 56.98 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.099e-05/0.8847, allocations: 62.94 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.8847, allocations: 3.062 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.8849, allocations: 56.59 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.165e-05/0.885, allocations: 40.23 kB / 0.9524 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.647e-05/0.885, allocations: 56.58 kB / 0.9525 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002258/0.8853, allocations: 198 kB / 0.9527 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.8853, allocations: 4 kB / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.71e-07/0.8853, allocations: 0 / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.8853, allocations: 0 / 0.9527 GB, free: 6.246 MB / 0.7169 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.0005258/0.8858, allocations: 487.2 kB / 0.9531 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.8859, allocations: 9.25 kB / 0.9532 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.8859, allocations: 21.2 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.8861, allocations: 263.1 kB / 0.9534 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.8862, allocations: 2.719 kB / 0.9534 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.8862, allocations: 11.34 kB / 0.9534 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.8864, allocations: 95.42 kB / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.8864, allocations: 0 / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.8864, allocations: 1.156 kB / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.8864, allocations: 2.188 kB / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.621e-05/0.8865, allocations: 33.84 kB / 0.9536 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.8869, allocations: 357.4 kB / 0.9539 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.8871, allocations: 88.47 kB / 0.954 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.385e-05/0.8872, allocations: 31.78 kB / 0.954 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.8872, allocations: 5.219 kB / 0.954 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.8874, allocations: 80.62 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.8874, allocations: 0 / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003187/0.8877, allocations: 143.1 kB / 0.9542 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.8878, allocations: 108.1 kB / 0.9543 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.888, allocations: 268.4 kB / 0.9546 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.888, allocations: 26.86 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.8881, allocations: 115.5 kB / 0.9547 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.8881, allocations: 19.95 kB / 0.9548 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.8882, allocations: 34.72 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.862e-05/0.8882, allocations: 331.2 kB / 0.9551 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.485e-05/0.8883, allocations: 26.58 kB / 0.9551 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.139e-05/0.8884, allocations: 69.84 kB / 0.9552 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.8885, allocations: 72.91 kB / 0.9553 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8885, allocations: 0 / 0.9553 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000199/0.8887, allocations: 115.9 kB / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.8887, allocations: 6.375 kB / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.8888, allocations: 0 / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.8888, allocations: 1.219 kB / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.544e-05/0.8889, allocations: 18.2 kB / 0.9554 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.8889, allocations: 5.438 kB / 0.9554 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.8889, allocations: 19.41 kB / 0.9554 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.889, allocations: 2.938 kB / 0.9554 GB, free: 3.746 MB / 0.7169 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 9.057e-05/0.889, allocations: 148.8 kB / 0.9556 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.8891, allocations: 15.56 kB / 0.9556 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.8891, allocations: 24.48 kB / 0.9556 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.8891, allocations: 1.062 kB / 0.9556 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.8891, allocations: 1.469 kB / 0.9556 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8892, allocations: 3.938 kB / 0.9556 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.8893, allocations: 218.5 kB / 0.9558 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.8893, allocations: 0 / 0.9558 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.8893, allocations: 13.45 kB / 0.9558 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.8893, allocations: 0 / 0.9558 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.8894, allocations: 5.344 kB / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.8894, allocations: 1.281 kB / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8894, allocations: 0 / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.8896, allocations: 143.6 kB / 0.956 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.8896, allocations: 90.61 kB / 0.9561 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.8897, allocations: 5.516 kB / 0.9561 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.344e-05/0.8897, allocations: 14.84 kB / 0.9561 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.8898, allocations: 12.08 kB / 0.9561 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.8898, allocations: 6.531 kB / 0.9561 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001405/0.8899, allocations: 195.5 kB / 0.9563 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8899, allocations: 0 / 0.9563 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002406/0.8902, allocations: 32.92 kB / 0.9563 GB, free: 2.965 MB / 0.7169 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.0008954/0.8911, allocations: 429.8 kB / 0.9567 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002067/0.8913, allocations: 68.31 kB / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8913, allocations: 0 / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.876e-05/0.8914, allocations: 37.02 kB / 0.9568 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.8917, allocations: 35.67 kB / 0.9569 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004841/0.8922, allocations: 316 kB / 0.9572 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.8923, allocations: 0.7235 MB / 0.9579 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.137e-05/0.8924, allocations: 27.5 kB / 0.9579 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.416e-05/0.8925, allocations: 17.28 kB / 0.9579 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.8925, allocations: 0 / 0.9579 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of Templates: time 0.005674/0.8982, allocations: 2.453 MB / 0.9603 GB, free: 0.4922 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches