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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 81.86 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009713/0.0009713, allocations: 169.7 kB / 23.28 MB, free: 1.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9214/0.9214, allocations: 177.1 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.751/2.751, allocations: 438.1 MB / 0.682 GB, free: 14.16 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intRep.u|intRep.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intRep.u|intRep.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 0.8897 GB, free: 9.754 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.935e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003526/0.003556, allocations: 1.827 MB / 0.8915 GB, free: 7.91 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002053/0.005609, allocations: 1.204 MB / 0.8927 GB, free: 6.699 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.005774, allocations: 7.938 kB / 0.8927 GB, free: 6.691 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0004577/0.006231, allocations: 59.61 kB / 0.8928 GB, free: 6.633 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0004929/0.006724, allocations: 123.4 kB / 0.8929 GB, free: 6.512 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006939/0.007418, allocations: 199.3 kB / 0.8931 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.007726, allocations: 163.5 kB / 0.8932 GB, free: 6.156 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.007867, allocations: 17.62 kB / 0.8933 GB, free: 6.137 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.00804, allocations: 95.72 kB / 0.8933 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.008166, allocations: 51.88 kB / 0.8934 GB, free: 5.992 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.008192, allocations: 8 kB / 0.8934 GB, free: 5.984 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.008416, allocations: 87.8 kB / 0.8935 GB, free: 5.898 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 8.837e-05/0.008504, allocations: 43.83 kB / 0.8935 GB, free: 5.855 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.473e-05/0.008559, allocations: 27.88 kB / 0.8936 GB, free: 5.828 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.00886, allocations: 175.4 kB / 0.8937 GB, free: 5.656 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.008864, allocations: 0 / 0.8937 GB, free: 5.656 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.903e-06/0.008866, allocations: 0 / 0.8937 GB, free: 5.656 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.008872, allocations: 0 / 0.8937 GB, free: 5.656 MB / 0.8542 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.001592/0.01046, allocations: 0.5167 MB / 0.8942 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/0.01053, allocations: 8.625 kB / 0.8942 GB, free: 5.09 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.244e-05/0.01061, allocations: 24.8 kB / 0.8943 GB, free: 5.066 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.01088, allocations: 188.2 kB / 0.8944 GB, free: 4.855 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.01091, allocations: 4.375 kB / 0.8944 GB, free: 4.852 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.01092, allocations: 8.312 kB / 0.8944 GB, free: 4.844 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.0111, allocations: 70.92 kB / 0.8945 GB, free: 4.766 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.01112, allocations: 7.938 kB / 0.8945 GB, free: 4.758 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.01113, allocations: 0 / 0.8945 GB, free: 4.758 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-05/0.01116, allocations: 4 kB / 0.8945 GB, free: 4.754 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.264e-05/0.0112, allocations: 11.98 kB / 0.8945 GB, free: 4.742 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.01167, allocations: 300.3 kB / 0.8948 GB, free: 4.422 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.0118, allocations: 59.14 kB / 0.8949 GB, free: 4.352 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.01184, allocations: 31.59 kB / 0.8949 GB, free: 4.316 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.01186, allocations: 8 kB / 0.8949 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.01201, allocations: 65.08 kB / 0.895 GB, free: 4.23 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 2.545e-06/0.01202, allocations: 0 / 0.895 GB, free: 4.23 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0002678/0.01228, allocations: 109.5 kB / 0.8951 GB, free: 4.117 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.01232, allocations: 51.41 kB / 0.8951 GB, free: 4.055 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.0125, allocations: 270.4 kB / 0.8954 GB, free: 3.773 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.01252, allocations: 29.7 kB / 0.8954 GB, free: 3.738 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.316e-05/0.01262, allocations: 170.8 kB / 0.8956 GB, free: 3.566 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.01265, allocations: 23.78 kB / 0.8956 GB, free: 3.543 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.0127, allocations: 35.34 kB / 0.8956 GB, free: 3.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.01286, allocations: 0.5117 MB / 0.8961 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.571e-05/0.0129, allocations: 11.98 kB / 0.8961 GB, free: 2.965 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.48e-05/0.01296, allocations: 60.75 kB / 0.8962 GB, free: 2.887 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.26e-05/0.01303, allocations: 43.36 kB / 0.8962 GB, free: 2.836 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.01303, allocations: 0 / 0.8962 GB, free: 2.836 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000154/0.01319, allocations: 97.44 kB / 0.8963 GB, free: 2.734 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.0132, allocations: 4 kB / 0.8963 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.01321, allocations: 0 / 0.8963 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.01323, allocations: 8.062 kB / 0.8964 GB, free: 2.723 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.01334, allocations: 8 kB / 0.8964 GB, free: 2.715 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.01335, allocations: 3.938 kB / 0.8964 GB, free: 2.711 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.709e-05/0.0134, allocations: 11.94 kB / 0.8964 GB, free: 2.699 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.01341, allocations: 4 kB / 0.8964 GB, free: 2.695 MB / 0.8542 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.0001471/0.01356, allocations: 161.3 kB / 0.8965 GB, free: 2.527 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.01359, allocations: 19.84 kB / 0.8966 GB, free: 2.508 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.0138, allocations: 95.45 kB / 0.8966 GB, free: 2.402 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.01382, allocations: 4 kB / 0.8966 GB, free: 2.398 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.01382, allocations: 4 kB / 0.8967 GB, free: 2.395 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01382, allocations: 0 / 0.8967 GB, free: 2.395 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.01402, allocations: 149.1 kB / 0.8968 GB, free: 2.223 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.01402, allocations: 0 / 0.8968 GB, free: 2.223 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.931e-05/0.01407, allocations: 8 kB / 0.8968 GB, free: 2.215 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.01408, allocations: 3.938 kB / 0.8968 GB, free: 2.211 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.01409, allocations: 7.984 kB / 0.8968 GB, free: 2.203 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.01409, allocations: 80 / 0.8968 GB, free: 2.203 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.01409, allocations: 3.984 kB / 0.8968 GB, free: 2.199 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.01426, allocations: 132.2 kB / 0.8969 GB, free: 2.047 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.01429, allocations: 19.91 kB / 0.897 GB, free: 2.027 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.01431, allocations: 7.938 kB / 0.897 GB, free: 2.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.585e-05/0.01435, allocations: 0 / 0.897 GB, free: 2.02 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.0144, allocations: 15.97 kB / 0.897 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.01442, allocations: 4 kB / 0.897 GB, free: 2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001147/0.01453, allocations: 188.5 kB / 0.8972 GB, free: 1.816 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01453, allocations: 3.938 kB / 0.8972 GB, free: 1.812 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002254/0.01476, allocations: 35.92 kB / 0.8972 GB, free: 1.777 MB / 0.8542 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.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.001136/0.0159, allocations: 409.1 kB / 0.8976 GB, free: 1.516 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001823/0.01608, allocations: 47.59 kB / 0.8976 GB, free: 1.465 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.01608, allocations: 0 / 0.8976 GB, free: 1.465 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.65e-05/0.01613, allocations: 31.61 kB / 0.8977 GB, free: 1.43 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.01639, allocations: 44.27 kB / 0.8977 GB, free: 1.391 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005318/0.01692, allocations: 270.6 kB / 0.898 GB, free: 1.098 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.346e-05/0.01699, allocations: 79.83 kB / 0.898 GB, free: 0.9961 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.652e-05/0.01705, allocations: 21.78 kB / 0.8981 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.01716, allocations: 94.19 kB / 0.8982 GB, free: 0.8828 MB / 0.8542 GB Notification: Performance of SimCode: time 1.172e-06/0.01716, allocations: 0 / 0.8982 GB, free: 0.8828 MB / 0.8542 GB Notification: Performance of Templates: time 0.006961/0.02412, allocations: 2.874 MB / 0.901 GB, free: 14.05 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.085648541804403]