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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009318/0.0009318, allocations: 92.16 kB / 16.02 MB, free: 80 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.001587/0.001587, allocations: 172.9 kB / 16.92 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.424/1.424, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.515/2.515, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 23.97 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7367/0.7371, allocations: 142.4 MB / 0.9557 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001865/0.739, allocations: 1.474 MB / 0.9571 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.7404, allocations: 1.069 MB / 0.9582 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.888e-05/0.7405, allocations: 1.188 kB / 0.9582 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002771/0.7408, allocations: 53.81 kB / 0.9582 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.741, allocations: 65.69 kB / 0.9583 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004975/0.7415, allocations: 206.3 kB / 0.9585 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.7417, allocations: 133.7 kB / 0.9586 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.7418, allocations: 28.09 kB / 0.9587 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.418e-05/0.7419, allocations: 59.02 kB / 0.9587 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.042e-05/0.742, allocations: 57.88 kB / 0.9588 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.742, allocations: 2.75 kB / 0.9588 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.7421, allocations: 60.91 kB / 0.9588 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.905e-05/0.7422, allocations: 38.89 kB / 0.9589 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.691e-05/0.7423, allocations: 78.12 kB / 0.9589 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.7425, allocations: 144.7 kB / 0.9591 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.7425, allocations: 4.859 kB / 0.9591 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7425, allocations: 3.938 kB / 0.9591 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.7425, allocations: 5.031 kB / 0.9591 GB, free: 5.289 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.0005071/0.743, allocations: 461.2 kB / 0.9595 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.743, allocations: 10.12 kB / 0.9595 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.7431, allocations: 15.34 kB / 0.9596 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.7433, allocations: 252.8 kB / 0.9598 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.7434, allocations: 1.656 kB / 0.9598 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.7434, allocations: 8.031 kB / 0.9598 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.7436, allocations: 103.5 kB / 0.9599 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-06/0.7436, allocations: 0 / 0.9599 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.7436, allocations: 1.031 kB / 0.9599 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.7436, allocations: 2.188 kB / 0.9599 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.7437, allocations: 33.75 kB / 0.9599 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004188/0.7442, allocations: 352.6 kB / 0.9603 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.7444, allocations: 92.97 kB / 0.9604 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.23e-05/0.7445, allocations: 31.44 kB / 0.9604 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.7445, allocations: 9.688 kB / 0.9604 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.7447, allocations: 75.28 kB / 0.9605 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.635e-06/0.7447, allocations: 5.188 kB / 0.9605 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003487/0.7451, allocations: 146.8 kB / 0.9606 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.7451, allocations: 104.2 kB / 0.9607 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.7453, allocations: 264.4 kB / 0.961 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.7454, allocations: 27.08 kB / 0.961 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.7454, allocations: 120.4 kB / 0.9611 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.7455, allocations: 23.77 kB / 0.9611 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.7455, allocations: 16.47 kB / 0.9611 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.872e-05/0.7456, allocations: 340.2 kB / 0.9615 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.76e-05/0.7456, allocations: 21.75 kB / 0.9615 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.372e-05/0.7457, allocations: 72.95 kB / 0.9616 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.7459, allocations: 65.33 kB / 0.9616 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.7459, allocations: 0 / 0.9616 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002005/0.7461, allocations: 124.7 kB / 0.9617 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.7461, allocations: 4.938 kB / 0.9617 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7461, allocations: 1.031 kB / 0.9618 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.7461, allocations: 0.9688 kB / 0.9618 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.362e-05/0.7462, allocations: 10.09 kB / 0.9618 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.7462, allocations: 5.469 kB / 0.9618 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.7463, allocations: 7.594 kB / 0.9618 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.7463, allocations: 3.031 kB / 0.9618 GB, free: 2.828 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.0001073/0.7464, allocations: 157.6 kB / 0.9619 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.7465, allocations: 15.88 kB / 0.9619 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.7465, allocations: 20.36 kB / 0.962 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.7465, allocations: 2.094 kB / 0.962 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7465, allocations: 0 / 0.962 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.7466, allocations: 3.984 kB / 0.962 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/0.7467, allocations: 231.1 kB / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7467, allocations: 0 / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.7468, allocations: 5 kB / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.7468, allocations: 8.922 kB / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.7468, allocations: 0.9688 kB / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.7468, allocations: 5.031 kB / 0.9622 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.7468, allocations: 3.984 kB / 0.9622 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.747, allocations: 139.5 kB / 0.9623 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.562e-05/0.7471, allocations: 95.14 kB / 0.9624 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.7471, allocations: 5.969 kB / 0.9624 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.874e-05/0.7472, allocations: 11.23 kB / 0.9625 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.7472, allocations: 10.92 kB / 0.9625 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.7472, allocations: 11.25 kB / 0.9625 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001643/0.7474, allocations: 195.3 kB / 0.9627 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7474, allocations: 0.9688 kB / 0.9627 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002614/0.7477, allocations: 36.86 kB / 0.9627 GB, free: 2.023 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.0009851/0.7487, allocations: 418.4 kB / 0.9631 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.7489, allocations: 63.75 kB / 0.9632 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7489, allocations: 4.062 kB / 0.9632 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.559e-05/0.749, allocations: 48.41 kB / 0.9632 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.7493, allocations: 33.06 kB / 0.9632 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005285/0.7499, allocations: 352.7 kB / 0.9636 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.75, allocations: 0.7227 MB / 0.9643 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.993e-05/0.7501, allocations: 21.56 kB / 0.9643 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.7501, allocations: 0 / 0.9643 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of Templates: time 0.004709/0.7548, allocations: 2.566 MB / 0.9668 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches