Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001285/0.001285, allocations: 109 kB / 16.41 MB, free: 6.488 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.001344/0.001344, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.38/2.38, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8302/0.8314, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003334/0.8348, allocations: 1.778 MB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001852/0.8367, allocations: 1.096 MB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.8368, allocations: 3.938 kB / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003403/0.8372, allocations: 63.67 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.8375, allocations: 83.66 kB / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000689/0.8382, allocations: 219.9 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.8385, allocations: 147.6 kB / 1.171 GB, free: 456 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.8386, allocations: 25.09 kB / 1.171 GB, free: 432 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.8387, allocations: 55.78 kB / 1.171 GB, free: 376 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.8389, allocations: 63.75 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.8389, allocations: 4 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.8391, allocations: 83.88 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.974e-05/0.8392, allocations: 39.84 kB / 1.171 GB, free: 184 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.264e-05/0.8393, allocations: 55.66 kB / 1.171 GB, free: 128 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.8396, allocations: 199.3 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.8396, allocations: 7.938 kB / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8396, allocations: 0 / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.8396, allocations: 0 / 1.171 GB, free: 15.92 MB / 0.9044 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.0007351/0.8404, allocations: 494.1 kB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.8404, allocations: 16.61 kB / 1.172 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.93e-05/0.8405, allocations: 16.75 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.8408, allocations: 248.9 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.8409, allocations: 4.375 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.8409, allocations: 15.97 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.8411, allocations: 100.2 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.8411, allocations: 0 / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.8412, allocations: 0 / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.8412, allocations: 0 / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.8413, allocations: 39.92 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.8418, allocations: 352.7 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.8421, allocations: 90.69 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.218e-05/0.8422, allocations: 32.84 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.8422, allocations: 0 / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.8424, allocations: 91.38 kB / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.8424, allocations: 0 / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0003683/0.8428, allocations: 133.5 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.8428, allocations: 106.8 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.8431, allocations: 267 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.8431, allocations: 25.7 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.8432, allocations: 120.1 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.8433, allocations: 23.66 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.8433, allocations: 29.64 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8434, allocations: 334.8 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.312e-05/0.8435, allocations: 23.98 kB / 1.174 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.8436, allocations: 72.2 kB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.8438, allocations: 77.62 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.8438, allocations: 0 / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002261/0.8441, allocations: 109.5 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.8441, allocations: 4 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.8441, allocations: 4 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.8441, allocations: 0 / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.8442, allocations: 15.94 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.8442, allocations: 4.391 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.108e-05/0.8443, allocations: 15.95 kB / 1.174 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.8443, allocations: 0 / 1.174 GB, free: 12.84 MB / 0.9044 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.0001452/0.8445, allocations: 141.8 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-05/0.8445, allocations: 15.81 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.8446, allocations: 17.39 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.8446, allocations: 4 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.8446, allocations: 0 / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.8446, allocations: 3.938 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.8448, allocations: 229.4 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.8448, allocations: 4 kB / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.282e-05/0.8449, allocations: 12 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.8449, allocations: 0 / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.8449, allocations: 3.984 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.8449, allocations: 0 / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.8449, allocations: 3.938 kB / 1.174 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.8452, allocations: 144.8 kB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.8453, allocations: 93.02 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.8453, allocations: 4 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.594e-05/0.8454, allocations: 4 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.8454, allocations: 11.98 kB / 1.175 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.8455, allocations: 3.938 kB / 1.175 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001864/0.8456, allocations: 200.4 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8457, allocations: 0 / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002684/0.8459, allocations: 31.91 kB / 1.175 GB, free: 11.83 MB / 0.9044 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.001055/0.847, allocations: 437.5 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002335/0.8472, allocations: 67.91 kB / 1.175 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8472, allocations: 0 / 1.175 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.8474, allocations: 43.91 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.8477, allocations: 42.89 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005857/0.8483, allocations: 316.5 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.8486, allocations: 0.7202 MB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.8486, allocations: 23.42 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of SimCode: time 2e-07/0.8486, allocations: 0 / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of Templates: time 0.004892/0.8535, allocations: 2.606 MB / 1.179 GB, free: 7.711 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches