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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001522/0.001521, allocations: 110.5 kB / 16.37 MB, free: 6.016 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.001697/0.001697, allocations: 195.1 kB / 17.31 MB, free: 5.613 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.648/2.648, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 65.19 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2835, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003088/0.2866, allocations: 1.79 MB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.2882, allocations: 1.096 MB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.496e-05/0.2883, allocations: 0 / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.2886, allocations: 63.67 kB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.2889, allocations: 75.67 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.2895, allocations: 221.7 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.2897, allocations: 159.5 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.2898, allocations: 17.12 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.2899, allocations: 71.69 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.29, allocations: 59.75 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.2901, allocations: 8 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.2902, allocations: 79.88 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.2903, allocations: 31.92 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.328e-05/0.2904, allocations: 55.61 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.2907, allocations: 207.3 kB / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2907, allocations: 0 / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2907, allocations: 0 / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.2907, allocations: 4 kB / 1.031 GB, free: 14.16 MB / 0.8106 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.0006922/0.2914, allocations: 488.3 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2915, allocations: 8.031 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.2915, allocations: 16.75 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.2919, allocations: 256.8 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2919, allocations: 4.375 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.2919, allocations: 8.062 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.2922, allocations: 96.23 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2922, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.2922, allocations: 8 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.2922, allocations: 0 / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.2923, allocations: 39.91 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.2929, allocations: 352.6 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.2931, allocations: 98.69 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.985e-05/0.2932, allocations: 32.84 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.2932, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.2934, allocations: 79.38 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.2934, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003485/0.2937, allocations: 145.4 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.2938, allocations: 106.8 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.2941, allocations: 259 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.2941, allocations: 29.7 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.129e-05/0.2942, allocations: 116.1 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.2942, allocations: 23.7 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.2943, allocations: 29.64 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2944, allocations: 330.8 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-05/0.2945, allocations: 31.98 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.2946, allocations: 64.28 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.2947, allocations: 73.94 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2948, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002342/0.295, allocations: 117.5 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.295, allocations: 4 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.295, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2951, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2952, allocations: 23.92 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.2952, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.589e-05/0.2952, allocations: 15.81 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.2953, allocations: 4 kB / 1.033 GB, free: 11.08 MB / 0.8106 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.0001451/0.2954, allocations: 142.6 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.2955, allocations: 19.84 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.2955, allocations: 21.39 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.2955, allocations: 4 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2955, allocations: 0 / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2955, allocations: 3.938 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.2957, allocations: 217.6 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2958, allocations: 3.984 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.2958, allocations: 4 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.2958, allocations: 4 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2958, allocations: 4 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2958, allocations: 4 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2958, allocations: 3.938 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.2961, allocations: 144.8 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.2962, allocations: 88.92 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2962, allocations: 11.98 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.301e-05/0.2963, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.043e-05/0.2963, allocations: 11.98 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.2964, allocations: 7.938 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001713/0.2965, allocations: 195.2 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2965, allocations: 0 / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002584/0.2968, allocations: 35.98 kB / 1.034 GB, free: 10.07 MB / 0.8106 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.0009546/0.2978, allocations: 431.3 kB / 1.035 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.298, allocations: 67.91 kB / 1.035 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.298, allocations: 0 / 1.035 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.839e-05/0.2981, allocations: 40.05 kB / 1.035 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.2984, allocations: 37.11 kB / 1.035 GB, free: 9.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004898/0.2989, allocations: 290.9 kB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.2992, allocations: 0.7201 MB / 1.036 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.952e-05/0.2992, allocations: 33.31 kB / 1.036 GB, free: 8.574 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/0.2993, allocations: 23.44 kB / 1.036 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.2993, allocations: 0 / 1.036 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of Templates: time 0.006251/0.3056, allocations: 2.541 MB / 1.038 GB, free: 6.047 MB / 0.8106 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches