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.001399/0.001399, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001275/0.001275, allocations: 173 kB / 23.49 MB, free: 1.059 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.9749/0.9749, allocations: 177.1 MB / 203.8 MB, free: 5.621 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.21/2.21, allocations: 429.5 MB / 0.6736 GB, free: 4.02 MB / 0.6355 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 1.383e-06/1.383e-06, allocations: 0 / 0.8782 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.698e-05/1.837e-05, allocations: 7.281 kB / 0.8782 GB, free: 6.605 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002167/0.002185, allocations: 1.832 MB / 0.88 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.003545, allocations: 1.222 MB / 0.8812 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.029e-05/0.003635, allocations: 0 / 0.8812 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.003955, allocations: 65.59 kB / 0.8812 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.004225, allocations: 119.4 kB / 0.8813 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.004573, allocations: 197.8 kB / 0.8815 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.004755, allocations: 163.5 kB / 0.8817 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.417e-05/0.004849, allocations: 13.64 kB / 0.8817 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.004954, allocations: 95.67 kB / 0.8818 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.24e-05/0.005047, allocations: 60.58 kB / 0.8819 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.005065, allocations: 8 kB / 0.8819 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.005195, allocations: 81.52 kB / 0.8819 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.554e-05/0.00526, allocations: 43.83 kB / 0.882 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.848e-05/0.005309, allocations: 35.88 kB / 0.882 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.005523, allocations: 167.4 kB / 0.8822 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.005525, allocations: 0.5 kB / 0.8822 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.713e-06/0.005527, allocations: 4 kB / 0.8822 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.00553, allocations: 1.344 kB / 0.8822 GB, free: 2.527 MB / 0.8386 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.0005225/0.006053, allocations: 0.5167 MB / 0.8827 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.006085, allocations: 8.031 kB / 0.8827 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.006139, allocations: 30.38 kB / 0.8827 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.006345, allocations: 184.2 kB / 0.8829 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.006362, allocations: 8.375 kB / 0.8829 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.006374, allocations: 4.375 kB / 0.8829 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.006541, allocations: 120 kB / 0.883 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.006552, allocations: 11.88 kB / 0.883 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.006562, allocations: 0 / 0.883 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.006575, allocations: 0 / 0.883 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.577e-05/0.006621, allocations: 15.98 kB / 0.883 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.006983, allocations: 335.7 kB / 0.8834 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.007101, allocations: 75.11 kB / 0.8834 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.65e-05/0.007137, allocations: 27.69 kB / 0.8835 GB, free: 1.066 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.007148, allocations: 0 / 0.8835 GB, free: 1.066 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/0.007251, allocations: 77.02 kB / 0.8835 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.007252, allocations: 0 / 0.8835 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002024/0.007455, allocations: 105.5 kB / 0.8836 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.007493, allocations: 81.11 kB / 0.8837 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.007672, allocations: 278.5 kB / 0.884 GB, free: 492 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.007686, allocations: 29.7 kB / 0.884 GB, free: 456 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.007759, allocations: 166.9 kB / 0.8842 GB, free: 284 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.007784, allocations: 31.77 kB / 0.8842 GB, free: 252 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.00782, allocations: 35.38 kB / 0.8842 GB, free: 208 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.007946, allocations: 0.5001 MB / 0.8847 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.439e-05/0.00797, allocations: 8 kB / 0.8847 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.796e-05/0.008028, allocations: 106.1 kB / 0.8848 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.253e-05/0.008091, allocations: 55.23 kB / 0.8849 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.008094, allocations: 4 kB / 0.8849 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001086/0.008202, allocations: 93.47 kB / 0.885 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.008215, allocations: 11.98 kB / 0.885 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.00822, allocations: 4.062 kB / 0.885 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.008231, allocations: 0 / 0.885 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.916e-05/0.0083, allocations: 12 kB / 0.885 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.008305, allocations: 0 / 0.885 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.536e-05/0.008341, allocations: 4 kB / 0.885 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.008348, allocations: 3.984 kB / 0.885 GB, free: 15.35 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 8.066e-05/0.008428, allocations: 173.7 kB / 0.8852 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.008456, allocations: 19.86 kB / 0.8852 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.008599, allocations: 111.5 kB / 0.8853 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.008607, allocations: 8 kB / 0.8853 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.00861, allocations: 0 / 0.8853 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.008613, allocations: 0 / 0.8853 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.008735, allocations: 172.5 kB / 0.8855 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008736, allocations: 0 / 0.8855 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-05/0.008764, allocations: 8 kB / 0.8855 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.008766, allocations: 0 / 0.8855 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.008774, allocations: 7.922 kB / 0.8855 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.008775, allocations: 0 / 0.8855 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.008777, allocations: 4 kB / 0.8855 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001202/0.008897, allocations: 140.2 kB / 0.8856 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.008916, allocations: 23.91 kB / 0.8857 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.008934, allocations: 0 / 0.8857 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.897e-05/0.008963, allocations: 7.984 kB / 0.8857 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.009007, allocations: 15.92 kB / 0.8857 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.009016, allocations: 0 / 0.8857 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001013/0.009117, allocations: 200.5 kB / 0.8859 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.009117, allocations: 4 kB / 0.8859 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001668/0.009284, allocations: 35.92 kB / 0.8859 GB, free: 14.37 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.0008769/0.01016, allocations: 413.6 kB / 0.8863 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001234/0.01028, allocations: 47.61 kB / 0.8863 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.01029, allocations: 0 / 0.8863 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.388e-05/0.01033, allocations: 39.66 kB / 0.8864 GB, free: 14 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.01053, allocations: 49.92 kB / 0.8864 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/0.01089, allocations: 274.6 kB / 0.8867 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.2e-05/0.01093, allocations: 71.83 kB / 0.8868 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.543e-05/0.01097, allocations: 21.78 kB / 0.8868 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.01101, allocations: 24.5 kB / 0.8868 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of SimCode: time 5.41e-07/0.01101, allocations: 0 / 0.8868 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of Templates: time 0.004249/0.01526, allocations: 2.702 MB / 0.8894 GB, free: 10.87 MB / 0.8542 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: 5.493708883179352]