Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.007996/0.007996, allocations: 94.72 kB / 15.73 MB, free: 6.039 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.001951/0.001951, allocations: 197.3 kB / 16.67 MB, free: 5.969 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.864/2.864, allocations: 472.6 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 68.09 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3035, allocations: 159.9 MB / 1.226 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003389/0.3069, allocations: 1.772 MB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.3088, allocations: 1.114 MB / 1.228 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.309, allocations: 11.94 kB / 1.228 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.3094, allocations: 55.73 kB / 1.228 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003389/0.3098, allocations: 71.67 kB / 1.229 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000781/0.3106, allocations: 226.5 kB / 1.229 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.3109, allocations: 143.6 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.311, allocations: 24.98 kB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.3111, allocations: 63.75 kB / 1.229 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.3113, allocations: 63.75 kB / 1.229 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3113, allocations: 8 kB / 1.229 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001925/0.3115, allocations: 75.89 kB / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.463e-05/0.3116, allocations: 39.83 kB / 1.229 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.548e-05/0.3117, allocations: 59.62 kB / 1.229 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000341/0.312, allocations: 199.2 kB / 1.229 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3121, allocations: 0 / 1.229 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3121, allocations: 4 kB / 1.229 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.3121, allocations: 0 / 1.229 GB, free: 5.254 MB / 0.9825 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.0006916/0.3128, allocations: 496 kB / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3128, allocations: 12.03 kB / 1.23 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/0.3129, allocations: 16.84 kB / 1.23 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3133, allocations: 260.9 kB / 1.23 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.3133, allocations: 8.312 kB / 1.23 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.3133, allocations: 8.125 kB / 1.23 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.3136, allocations: 92.23 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.3136, allocations: 0 / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.3136, allocations: 0 / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.3136, allocations: 7.984 kB / 1.23 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.3137, allocations: 35.92 kB / 1.23 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.3143, allocations: 356.7 kB / 1.231 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.3145, allocations: 90.7 kB / 1.231 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.3146, allocations: 32.84 kB / 1.231 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3147, allocations: 4 kB / 1.231 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.3149, allocations: 83.33 kB / 1.231 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 2.024e-06/0.3149, allocations: 7.938 kB / 1.231 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0003954/0.3153, allocations: 141.5 kB / 1.231 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.3154, allocations: 110.8 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.3156, allocations: 262.9 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.3157, allocations: 33.69 kB / 1.231 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.016e-05/0.3157, allocations: 112.1 kB / 1.231 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.3158, allocations: 23.8 kB / 1.231 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.459e-05/0.3158, allocations: 29.7 kB / 1.232 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.316, allocations: 334.8 kB / 1.232 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.316, allocations: 23.98 kB / 1.232 GB, free: 2.473 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.959e-05/0.3162, allocations: 72.27 kB / 1.232 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.3163, allocations: 65.64 kB / 1.232 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3163, allocations: 4 kB / 1.232 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002222/0.3165, allocations: 113.6 kB / 1.232 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3166, allocations: 9.562 kB / 1.232 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3166, allocations: 0 / 1.232 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3166, allocations: 0 / 1.232 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.3167, allocations: 19.92 kB / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3167, allocations: 0 / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.651e-05/0.3168, allocations: 11.89 kB / 1.232 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3168, allocations: 0 / 1.232 GB, free: 2.156 MB / 0.9825 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.0001356/0.317, allocations: 151 kB / 1.232 GB, free: 2 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.317, allocations: 15.91 kB / 1.232 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.317, allocations: 17.41 kB / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3171, allocations: 0 / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3171, allocations: 0 / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3171, allocations: 7.922 kB / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.3173, allocations: 221.6 kB / 1.233 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3173, allocations: 0 / 1.233 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.222e-05/0.3173, allocations: 4 kB / 1.233 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3174, allocations: 0 / 1.233 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3174, allocations: 4 kB / 1.233 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.3174, allocations: 7.938 kB / 1.233 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3174, allocations: 0 / 1.233 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.3176, allocations: 140.9 kB / 1.233 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-05/0.3177, allocations: 108.9 kB / 1.233 GB, free: 1.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.3178, allocations: 4.188 kB / 1.233 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-05/0.3178, allocations: 4 kB / 1.233 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.3179, allocations: 15.92 kB / 1.233 GB, free: 1.367 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.3179, allocations: 7.938 kB / 1.233 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001845/0.3181, allocations: 196.6 kB / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3181, allocations: 0 / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002631/0.3184, allocations: 35.94 kB / 1.233 GB, free: 1.133 MB / 0.9825 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.001063/0.3194, allocations: 418.8 kB / 1.233 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002532/0.3197, allocations: 71.91 kB / 1.234 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3197, allocations: 4.062 kB / 1.234 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.3198, allocations: 39.92 kB / 1.234 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.3201, allocations: 48.48 kB / 1.234 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.3207, allocations: 299 kB / 1.234 GB, free: 416 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.321, allocations: 0.7201 MB / 1.235 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.798e-05/0.3211, allocations: 33 kB / 1.235 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.3212, allocations: 19.44 kB / 1.235 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.3212, allocations: 0 / 1.235 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of Templates: time 0.006351/0.3275, allocations: 2.551 MB / 1.237 GB, free: 13.09 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches