Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7707/0.7707, allocations: 143.4 MB / 159.2 MB, free: 4.91 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 183.7 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 447.3 MB, free: 5.84 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 107.2 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001847/0.001847, allocations: 281.6 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 80.3 kB / 0.6885 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3398, allocations: 81.3 MB / 0.7679 GB, free: 27.63 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002663/0.3426, allocations: 1.832 MB / 0.7697 GB, free: 25.8 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3439, allocations: 1.091 MB / 0.7708 GB, free: 24.7 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.054e-05/0.344, allocations: 0 / 0.7708 GB, free: 24.7 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.3443, allocations: 55.78 kB / 0.7708 GB, free: 24.64 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.3445, allocations: 63.81 kB / 0.7709 GB, free: 24.58 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.3449, allocations: 204 kB / 0.7711 GB, free: 24.39 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.3451, allocations: 135.6 kB / 0.7712 GB, free: 24.25 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.81e-05/0.3452, allocations: 21.11 kB / 0.7712 GB, free: 24.23 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.678e-05/0.3453, allocations: 51.72 kB / 0.7713 GB, free: 24.18 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.3454, allocations: 67.75 kB / 0.7713 GB, free: 24.12 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.3454, allocations: 7.938 kB / 0.7714 GB, free: 24.11 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.3455, allocations: 59.95 kB / 0.7714 GB, free: 24.05 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.3456, allocations: 35.84 kB / 0.7714 GB, free: 24.02 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 5.061e-05/0.3456, allocations: 59.59 kB / 0.7715 GB, free: 23.96 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.3459, allocations: 194.1 kB / 0.7717 GB, free: 23.77 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3459, allocations: 3.938 kB / 0.7717 GB, free: 23.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.3459, allocations: 0 / 0.7717 GB, free: 23.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.3459, allocations: 0 / 0.7717 GB, free: 23.77 MB / 458.7 MB 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.0005205/0.3464, allocations: 496.3 kB / 0.7722 GB, free: 23.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.3465, allocations: 12.03 kB / 0.7722 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.3465, allocations: 16.75 kB / 0.7722 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.3467, allocations: 244.8 kB / 0.7724 GB, free: 22.92 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3467, allocations: 8.375 kB / 0.7724 GB, free: 22.91 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.3468, allocations: 12.11 kB / 0.7724 GB, free: 22.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.347, allocations: 96.16 kB / 0.7725 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.347, allocations: 4 kB / 0.7725 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.347, allocations: 4 kB / 0.7725 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.347, allocations: 4 kB / 0.7726 GB, free: 22.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.266e-05/0.3471, allocations: 27.98 kB / 0.7726 GB, free: 22.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.3475, allocations: 352.7 kB / 0.7729 GB, free: 22.36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.3477, allocations: 94.69 kB / 0.773 GB, free: 22.26 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.956e-05/0.3478, allocations: 28.84 kB / 0.773 GB, free: 22.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.3478, allocations: 4 kB / 0.773 GB, free: 22.22 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.348, allocations: 79.38 kB / 0.7731 GB, free: 22.13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.348, allocations: 0 / 0.7731 GB, free: 22.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=8): time 0.000293/0.3483, allocations: 141.4 kB / 0.7732 GB, free: 21.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.3484, allocations: 114.8 kB / 0.7734 GB, free: 21.85 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.3485, allocations: 262.8 kB / 0.7736 GB, free: 21.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.3486, allocations: 25.7 kB / 0.7736 GB, free: 21.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.3486, allocations: 116.1 kB / 0.7737 GB, free: 21.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.3486, allocations: 27.64 kB / 0.7738 GB, free: 21.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/0.3487, allocations: 29.72 kB / 0.7738 GB, free: 21.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.737e-05/0.3487, allocations: 330.8 kB / 0.7741 GB, free: 21.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.893e-05/0.3488, allocations: 23.98 kB / 0.7741 GB, free: 21.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.347e-05/0.3489, allocations: 80.16 kB / 0.7742 GB, free: 20.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.349, allocations: 69.67 kB / 0.7743 GB, free: 20.85 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.349, allocations: 0 / 0.7743 GB, free: 20.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001652/0.3492, allocations: 113.4 kB / 0.7744 GB, free: 20.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.3492, allocations: 8 kB / 0.7744 GB, free: 20.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3492, allocations: 4.031 kB / 0.7744 GB, free: 20.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3492, allocations: 0 / 0.7744 GB, free: 20.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.189e-05/0.3493, allocations: 12 kB / 0.7744 GB, free: 20.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3493, allocations: 3.984 kB / 0.7744 GB, free: 20.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.608e-05/0.3494, allocations: 7.938 kB / 0.7744 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-06/0.3494, allocations: 4 kB / 0.7744 GB, free: 20.7 MB / 458.7 MB 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.801e-05/0.3495, allocations: 141.4 kB / 0.7746 GB, free: 20.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.3495, allocations: 15.81 kB / 0.7746 GB, free: 20.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.3496, allocations: 29.39 kB / 0.7746 GB, free: 20.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3496, allocations: 3.938 kB / 0.7746 GB, free: 20.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3496, allocations: 4 kB / 0.7746 GB, free: 20.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3496, allocations: 3.938 kB / 0.7746 GB, free: 20.49 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.3498, allocations: 225.5 kB / 0.7748 GB, free: 20.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3498, allocations: 0 / 0.7748 GB, free: 20.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-05/0.3498, allocations: 7.984 kB / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3498, allocations: 0 / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.3498, allocations: 0 / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3498, allocations: 0 / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3499, allocations: 4 kB / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003734/0.3502, allocations: 0.7451 MB / 0.7756 GB, free: 19.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.3503, allocations: 96.91 kB / 0.7757 GB, free: 19.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.3503, allocations: 7.938 kB / 0.7757 GB, free: 19.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.903e-05/0.3504, allocations: 7.938 kB / 0.7757 GB, free: 19.28 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/0.3504, allocations: 12.02 kB / 0.7757 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.3504, allocations: 4 kB / 0.7757 GB, free: 19.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.3506, allocations: 196.6 kB / 0.7759 GB, free: 19.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3506, allocations: 0 / 0.7759 GB, free: 19.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003251/0.3509, allocations: 43.98 kB / 0.7759 GB, free: 19.03 MB / 458.7 MB 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.0008123/0.3517, allocations: 412 kB / 0.7763 GB, free: 18.78 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001884/0.3519, allocations: 75.88 kB / 0.7764 GB, free: 18.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3519, allocations: 4.062 kB / 0.7764 GB, free: 18.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 7.804e-05/0.352, allocations: 43.97 kB / 0.7764 GB, free: 18.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.3523, allocations: 33.02 kB / 0.7765 GB, free: 18.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004486/0.3527, allocations: 470.6 kB / 0.7769 GB, free: 18.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.3529, allocations: 0.7243 MB / 0.7776 GB, free: 17.38 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.211e-05/0.353, allocations: 21.39 kB / 0.7776 GB, free: 17.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.767e-05/0.353, allocations: 19.44 kB / 0.7777 GB, free: 17.34 MB / 458.7 MB Notification: Performance of SimCode: time 2.21e-07/0.353, allocations: 0 / 0.7777 GB, free: 17.34 MB / 458.7 MB Notification: Performance of Templates: time 0.004553/0.3576, allocations: 2.493 MB / 0.7801 GB, free: 14.87 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)