Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.562/2.562, allocations: 287.3 MB / 302.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001595/0.001595, allocations: 186.9 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 91.53 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0008456/0.0008466, allocations: 17.56 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.274, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003429/0.2775, allocations: 1.447 MB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002953/0.2805, allocations: 0.9222 MB / 0.9806 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.2807, allocations: 0 / 0.9806 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004031/0.2811, allocations: 51.8 kB / 0.9806 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.00034/0.2815, allocations: 63.8 kB / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.2826, allocations: 167 kB / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.2829, allocations: 83.83 kB / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.2831, allocations: 25.09 kB / 0.981 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.2832, allocations: 55.77 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2834, allocations: 47.77 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.2834, allocations: 4 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002633/0.2837, allocations: 47.91 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.2838, allocations: 27.91 kB / 0.9811 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.73e-05/0.2839, allocations: 45.64 kB / 0.9812 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.2844, allocations: 156 kB / 0.9813 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2844, allocations: 0 / 0.9813 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.575e-06/0.2844, allocations: 3.938 kB / 0.9813 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.2844, allocations: 0 / 0.9813 GB, free: 25.14 MB / 0.6198 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.001724/0.2862, allocations: 464.3 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.2862, allocations: 12.02 kB / 0.9818 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.207e-05/0.2863, allocations: 42.55 kB / 0.9818 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.11e-05/0.2864, allocations: 19.77 kB / 0.9819 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008786/0.2873, allocations: 243.7 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.2874, allocations: 0 / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.365e-05/0.2875, allocations: 8 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006775/0.2882, allocations: 104.1 kB / 0.9822 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.2883, allocations: 3.984 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.2883, allocations: 0 / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.826e-05/0.2884, allocations: 4 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.2886, allocations: 39.88 kB / 0.9822 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006872/0.2893, allocations: 348.7 kB / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.2896, allocations: 94.69 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.2897, allocations: 8.062 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.29, allocations: 83.39 kB / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 3.025e-06/0.29, allocations: 0 / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0005306/0.2905, allocations: 210.6 kB / 0.983 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.2906, allocations: 110.8 kB / 0.9831 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.2909, allocations: 263.6 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.291, allocations: 25.7 kB / 0.9833 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/0.2911, allocations: 116.1 kB / 0.9834 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.2911, allocations: 27.69 kB / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-06/0.2911, allocations: 0 / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.2912, allocations: 326.8 kB / 0.9838 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.2913, allocations: 27.98 kB / 0.9838 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.2915, allocations: 72.27 kB / 0.9839 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.2916, allocations: 27.94 kB / 0.9839 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2916, allocations: 3.984 kB / 0.9839 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003246/0.292, allocations: 113.4 kB / 0.984 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.292, allocations: 7.953 kB / 0.984 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.292, allocations: 4.031 kB / 0.984 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.2921, allocations: 0 / 0.984 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.2922, allocations: 12 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.2922, allocations: 3.984 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.2924, allocations: 7.938 kB / 0.9841 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.2924, allocations: 8 kB / 0.9841 GB, free: 22.07 MB / 0.6198 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.2926, allocations: 138 kB / 0.9842 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.2926, allocations: 15.81 kB / 0.9842 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.2927, allocations: 37.28 kB / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.2927, allocations: 4 kB / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2927, allocations: 0 / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2927, allocations: 0 / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.293, allocations: 217.6 kB / 0.9845 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.293, allocations: 0 / 0.9845 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.731e-05/0.2931, allocations: 7.984 kB / 0.9845 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2931, allocations: 0 / 0.9845 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.2931, allocations: 4 kB / 0.9845 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2931, allocations: 3.953 kB / 0.9845 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2931, allocations: 4 kB / 0.9845 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/0.2935, allocations: 149.2 kB / 0.9846 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.2935, allocations: 88.92 kB / 0.9847 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.2936, allocations: 8 kB / 0.9847 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.193e-05/0.2937, allocations: 3.984 kB / 0.9847 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.2938, allocations: 15.92 kB / 0.9847 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.2938, allocations: 4 kB / 0.9847 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002188/0.294, allocations: 200.4 kB / 0.9849 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.294, allocations: 0 / 0.9849 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003603/0.2944, allocations: 43.83 kB / 0.985 GB, free: 21.05 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001699/0.2961, allocations: 1.012 MB / 0.9859 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003435/0.2965, allocations: 71.97 kB / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2965, allocations: 0 / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.2967, allocations: 35.92 kB / 0.9861 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.2971, allocations: 37.23 kB / 0.9861 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.2992, allocations: 1.095 MB / 0.9872 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.2995, allocations: 0.7317 MB / 0.9879 GB, free: 18.13 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001512/0.2997, allocations: 25.38 kB / 0.9879 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.2998, allocations: 47.42 kB / 0.9879 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of SimCode: time 9.72e-07/0.2998, allocations: 0 / 0.9879 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.331, allocations: 4.128 MB / 0.992 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/0.3314, allocations: 224.1 kB / 0.9922 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.565/2.896, allocations: 0 / 0.9922 GB, free: 13.83 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)