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.001185/0.001185, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001125/0.001126, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.51/1.51, allocations: 222.9 MB / 239.9 MB, free: 4.547 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.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 67.89 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8095/0.811, allocations: 140.4 MB / 0.9491 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003506/0.8146, allocations: 1.832 MB / 0.9509 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001591/0.8162, allocations: 1.086 MB / 0.9519 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.213e-05/0.8163, allocations: 1.375 kB / 0.9519 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.8166, allocations: 54.62 kB / 0.952 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.8169, allocations: 65.89 kB / 0.9521 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005137/0.8174, allocations: 209.2 kB / 0.9523 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.8176, allocations: 139.3 kB / 0.9524 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.8177, allocations: 35.89 kB / 0.9524 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.313e-05/0.8178, allocations: 61.86 kB / 0.9525 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.464e-05/0.8179, allocations: 71.69 kB / 0.9525 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.8179, allocations: 6.781 kB / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.8181, allocations: 68.14 kB / 0.9526 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.8182, allocations: 33.97 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.544e-05/0.8182, allocations: 64.95 kB / 0.9527 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.8185, allocations: 204.2 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.8185, allocations: 0 / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8185, allocations: 0 / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.8185, allocations: 0 / 0.9529 GB, free: 6.312 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.0005447/0.8191, allocations: 484.2 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.8191, allocations: 9.406 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.8192, allocations: 16.88 kB / 0.9534 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.8194, allocations: 259.2 kB / 0.9536 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.8194, allocations: 14.62 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.8195, allocations: 8 kB / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.8196, allocations: 91.05 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.8197, allocations: 7.938 kB / 0.9538 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.8197, allocations: 5.25 kB / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.8197, allocations: 2.938 kB / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.8198, allocations: 33.03 kB / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.8202, allocations: 349.2 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.8204, allocations: 93.41 kB / 0.9542 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.578e-05/0.8205, allocations: 30.47 kB / 0.9542 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.8205, allocations: 1.531 kB / 0.9543 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.8207, allocations: 79.75 kB / 0.9543 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.8208, allocations: 0 / 0.9543 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003239/0.8211, allocations: 143.7 kB / 0.9545 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.8211, allocations: 112.1 kB / 0.9546 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.8213, allocations: 264 kB / 0.9548 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.8214, allocations: 31.86 kB / 0.9549 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.8214, allocations: 111.5 kB / 0.955 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.8214, allocations: 23.55 kB / 0.955 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.8215, allocations: 23.19 kB / 0.955 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.8215, allocations: 336.3 kB / 0.9553 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.617e-05/0.8216, allocations: 24.83 kB / 0.9553 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.038e-05/0.8217, allocations: 69.69 kB / 0.9554 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.8218, allocations: 72.91 kB / 0.9555 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.8218, allocations: 0 / 0.9555 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001866/0.822, allocations: 117.2 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.8221, allocations: 4.688 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.8221, allocations: 5.094 kB / 0.9556 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.8221, allocations: 1.094 kB / 0.9556 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.8222, allocations: 14.86 kB / 0.9556 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.8222, allocations: 5.125 kB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.8223, allocations: 11.19 kB / 0.9556 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.8223, allocations: 6.281 kB / 0.9556 GB, free: 3.824 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 0.0001156/0.8224, allocations: 145.6 kB / 0.9558 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.8225, allocations: 16.12 kB / 0.9558 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/0.8226, allocations: 23.23 kB / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.8226, allocations: 2.531 kB / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.8226, allocations: 1.062 kB / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.8226, allocations: 11.91 kB / 0.9558 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.8228, allocations: 222.6 kB / 0.956 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.8228, allocations: 3.938 kB / 0.956 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.977e-05/0.8228, allocations: 12.77 kB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.8229, allocations: 1.25 kB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.8229, allocations: 1.031 kB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8229, allocations: 1.156 kB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.8229, allocations: 0 / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.8231, allocations: 150.9 kB / 0.9562 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.148e-05/0.8232, allocations: 91.64 kB / 0.9563 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.8232, allocations: 5.172 kB / 0.9563 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.324e-05/0.8233, allocations: 2.844 kB / 0.9563 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.8233, allocations: 10.83 kB / 0.9563 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.8234, allocations: 8.094 kB / 0.9563 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001234/0.8235, allocations: 200.7 kB / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8235, allocations: 0 / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002367/0.8237, allocations: 36.02 kB / 0.9565 GB, free: 3.031 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.0009083/0.8246, allocations: 435 kB / 0.957 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002072/0.8249, allocations: 66.06 kB / 0.957 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8249, allocations: 0 / 0.957 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.509e-05/0.825, allocations: 37.95 kB / 0.9571 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.8252, allocations: 39.31 kB / 0.9571 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.8257, allocations: 327.5 kB / 0.9574 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.8258, allocations: 0.7229 MB / 0.9581 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.003e-05/0.8259, allocations: 23.25 kB / 0.9581 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.309e-05/0.826, allocations: 17.44 kB / 0.9582 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.826, allocations: 4 kB / 0.9582 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of Templates: time 0.005278/0.8312, allocations: 2.513 MB / 0.9606 GB, free: 0.5156 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