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.0008172/0.0008172, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006993/0.006993, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.46/1.46, allocations: 223.3 MB / 240.3 MB, free: 5.32 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.62/2.62, allocations: 390.9 MB / 0.6663 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003996/0.0003996, allocations: 12 kB / 0.8159 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9167/0.9171, allocations: 142.4 MB / 0.955 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002329/0.9195, allocations: 1.482 MB / 0.9565 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.9214, allocations: 1.069 MB / 0.9575 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.9216, allocations: 5.844 kB / 0.9575 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003596/0.9219, allocations: 53.8 kB / 0.9576 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.9222, allocations: 68.34 kB / 0.9576 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.923, allocations: 195.8 kB / 0.9578 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002592/0.9232, allocations: 137.1 kB / 0.958 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.9234, allocations: 23.84 kB / 0.958 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.9235, allocations: 54.33 kB / 0.958 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.9236, allocations: 66.69 kB / 0.9581 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.9237, allocations: 2.75 kB / 0.9581 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.9238, allocations: 56.97 kB / 0.9582 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.9239, allocations: 34.97 kB / 0.9582 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.924, allocations: 81.73 kB / 0.9583 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.9243, allocations: 197.9 kB / 0.9585 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.9244, allocations: 0 / 0.9585 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9244, allocations: 1.375 kB / 0.9585 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.9244, allocations: 0 / 0.9585 GB, free: 5.176 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.0006846/0.9251, allocations: 465.6 kB / 0.9589 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.9251, allocations: 9.625 kB / 0.9589 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.15e-05/0.9252, allocations: 15.62 kB / 0.9589 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.9255, allocations: 248.5 kB / 0.9592 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.9255, allocations: 11.03 kB / 0.9592 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.9256, allocations: 14.67 kB / 0.9592 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.9258, allocations: 87.95 kB / 0.9593 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.9258, allocations: 0 / 0.9593 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.9258, allocations: 4.906 kB / 0.9593 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.9259, allocations: 2.094 kB / 0.9593 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.926, allocations: 37.97 kB / 0.9593 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/0.9265, allocations: 354 kB / 0.9597 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.9267, allocations: 88.31 kB / 0.9597 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.091e-05/0.9268, allocations: 30.88 kB / 0.9598 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.9269, allocations: 5.266 kB / 0.9598 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.9271, allocations: 87.45 kB / 0.9599 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.9271, allocations: 1.031 kB / 0.9599 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003935/0.9275, allocations: 139 kB / 0.96 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.9276, allocations: 108.2 kB / 0.9601 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.9279, allocations: 264.4 kB / 0.9603 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.9279, allocations: 26.86 kB / 0.9604 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.928, allocations: 116.3 kB / 0.9605 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.928, allocations: 31.48 kB / 0.9605 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.928, allocations: 17.56 kB / 0.9605 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.9281, allocations: 330.9 kB / 0.9608 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.895e-05/0.9282, allocations: 25.73 kB / 0.9609 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.955e-05/0.9283, allocations: 74.31 kB / 0.9609 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.9284, allocations: 73.27 kB / 0.961 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.9284, allocations: 0 / 0.961 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000234/0.9287, allocations: 112.2 kB / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.9287, allocations: 6.75 kB / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.9287, allocations: 0 / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.9287, allocations: 1.375 kB / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.53e-05/0.9288, allocations: 14.94 kB / 0.9611 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.361e-06/0.9289, allocations: 7.938 kB / 0.9611 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.9289, allocations: 20.08 kB / 0.9612 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.929, allocations: 2.75 kB / 0.9612 GB, free: 2.695 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.0001087/0.9291, allocations: 146.7 kB / 0.9613 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.9291, allocations: 14.38 kB / 0.9613 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.9291, allocations: 20.83 kB / 0.9613 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.9292, allocations: 2.031 kB / 0.9613 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.9292, allocations: 0 / 0.9613 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.9292, allocations: 3.938 kB / 0.9613 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.9293, allocations: 227.5 kB / 0.9616 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.9294, allocations: 4 kB / 0.9616 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-05/0.9294, allocations: 4.781 kB / 0.9616 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.9294, allocations: 0.9062 kB / 0.9616 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.9294, allocations: 5.016 kB / 0.9616 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.9294, allocations: 0.9688 kB / 0.9616 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.9294, allocations: 0 / 0.9616 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/0.9297, allocations: 143.3 kB / 0.9617 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.9297, allocations: 95.05 kB / 0.9618 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.9298, allocations: 6 kB / 0.9618 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.808e-05/0.9298, allocations: 6.797 kB / 0.9618 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.96e-05/0.9299, allocations: 8.156 kB / 0.9618 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.9299, allocations: 10.05 kB / 0.9618 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001799/0.9301, allocations: 196.8 kB / 0.962 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9301, allocations: 0 / 0.962 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002898/0.9304, allocations: 32.42 kB / 0.9621 GB, free: 1.922 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.001029/0.9314, allocations: 428.4 kB / 0.9625 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002373/0.9317, allocations: 79.61 kB / 0.9625 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.9317, allocations: 5.031 kB / 0.9625 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.034e-05/0.9318, allocations: 32.83 kB / 0.9626 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.9321, allocations: 35.14 kB / 0.9626 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005756/0.9327, allocations: 325.5 kB / 0.9629 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.9329, allocations: 0.7229 MB / 0.9636 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.902e-05/0.933, allocations: 23.56 kB / 0.9636 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.287e-05/0.933, allocations: 25.3 kB / 0.9637 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.9331, allocations: 0 / 0.9637 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of Templates: time 0.006829/0.9399, allocations: 2.413 MB / 0.966 GB, free: 15.45 MB / 0.7325 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