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.006427/0.006427, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.00127/0.00127, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.444/2.444, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.91 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.025/1.026, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003734/1.03, allocations: 1.764 MB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001897/1.032, allocations: 1.113 MB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/1.032, allocations: 0.9062 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004419/1.032, allocations: 57.62 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002973/1.032, allocations: 76.59 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007695/1.033, allocations: 232.2 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002887/1.034, allocations: 146.7 kB / 1.091 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/1.034, allocations: 17.38 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/1.034, allocations: 71.67 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/1.034, allocations: 63.61 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/1.034, allocations: 10.84 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002031/1.034, allocations: 71.62 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.913e-05/1.034, allocations: 37.3 kB / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.765e-05/1.034, allocations: 59.64 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003804/1.035, allocations: 205.5 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.035, allocations: 0 / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/1.035, allocations: 1 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.887e-06/1.035, allocations: 0 / 1.092 GB, free: 3.078 MB / 0.8575 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.0006935/1.036, allocations: 485.8 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/1.036, allocations: 13.25 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/1.036, allocations: 17.03 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/1.036, allocations: 245.6 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/1.036, allocations: 7.125 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/1.036, allocations: 16.2 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/1.036, allocations: 88.73 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/1.036, allocations: 0 / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/1.036, allocations: 8.906 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/1.036, allocations: 2.531 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/1.037, allocations: 40.36 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005343/1.037, allocations: 354.7 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/1.037, allocations: 87.83 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.081e-05/1.037, allocations: 40.08 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/1.037, allocations: 0.75 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/1.038, allocations: 84 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/1.038, allocations: 0 / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004145/1.038, allocations: 142.5 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/1.038, allocations: 112.5 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/1.039, allocations: 265.6 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/1.039, allocations: 27.48 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.621e-05/1.039, allocations: 112.7 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/1.039, allocations: 24.86 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/1.039, allocations: 29.14 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.457e-05/1.039, allocations: 328.9 kB / 1.094 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/1.039, allocations: 26.25 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/1.039, allocations: 71.33 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/1.039, allocations: 71.19 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.039, allocations: 0.9062 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002242/1.039, allocations: 112.8 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/1.039, allocations: 5.891 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.039, allocations: 0.9375 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.039, allocations: 0.6562 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/1.04, allocations: 20.98 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/1.04, allocations: 0.8125 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/1.04, allocations: 13.11 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/1.04, allocations: 6.406 kB / 1.094 GB, free: 0.7852 MB / 0.8575 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.0001269/1.04, allocations: 149.3 kB / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/1.04, allocations: 15 kB / 1.095 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.16e-05/1.04, allocations: 18.7 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/1.04, allocations: 7.25 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/1.04, allocations: 4 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/1.04, allocations: 5.547 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/1.04, allocations: 218.5 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/1.04, allocations: 0.7969 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.122e-05/1.04, allocations: 6.078 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/1.04, allocations: 1.5 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/1.04, allocations: 1.547 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/1.04, allocations: 0.75 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.04, allocations: 4.906 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/1.04, allocations: 151.4 kB / 1.095 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.441e-05/1.041, allocations: 94.91 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/1.041, allocations: 2.219 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.522e-05/1.041, allocations: 7.672 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/1.041, allocations: 6.766 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/1.041, allocations: 8.172 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002238/1.041, allocations: 193.8 kB / 1.095 GB, free: 88 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/1.041, allocations: 0 / 1.095 GB, free: 88 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003284/1.041, allocations: 39.11 kB / 1.095 GB, free: 76 kB / 0.8575 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.001395/1.043, allocations: 425.3 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003973/1.043, allocations: 69.91 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.043, allocations: 3.938 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/1.043, allocations: 33.58 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/1.044, allocations: 47.61 kB / 1.096 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007072/1.044, allocations: 299 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/1.045, allocations: 0.7242 MB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001045/1.045, allocations: 20.78 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/1.045, allocations: 18.59 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/1.045, allocations: 4 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of Templates: time 0.007952/1.053, allocations: 2.539 MB / 1.099 GB, free: 14.68 MB / 0.8731 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