Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007284/0.0007284, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004596/0.004596, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.63/1.63, allocations: 292.7 MB / 0.5502 GB, free: 14.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005606/0.0005606, allocations: 18.81 kB / 0.6744 GB, free: 25.88 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2735, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002174/0.2758, allocations: 1.49 MB / 0.7894 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.2773, allocations: 0.992 MB / 0.7904 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.868e-05/0.2774, allocations: 3.938 kB / 0.7904 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.2778, allocations: 55.81 kB / 0.7905 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.278, allocations: 63.81 kB / 0.7905 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.2785, allocations: 187.1 kB / 0.7907 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000201/0.2787, allocations: 135.6 kB / 0.7908 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.2788, allocations: 25.11 kB / 0.7909 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.007e-05/0.2789, allocations: 47.78 kB / 0.7909 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.279, allocations: 59.75 kB / 0.791 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2791, allocations: 0 / 0.791 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.2792, allocations: 59.89 kB / 0.791 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.2793, allocations: 39.84 kB / 0.7911 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.081e-05/0.2794, allocations: 81.3 kB / 0.7911 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.2796, allocations: 187.7 kB / 0.7913 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2797, allocations: 3.938 kB / 0.7913 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2797, allocations: 0 / 0.7913 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2797, allocations: 4 kB / 0.7913 GB, free: 8.031 MB / 0.6075 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.0006283/0.2803, allocations: 468.5 kB / 0.7918 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.2804, allocations: 15.97 kB / 0.7918 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.155e-05/0.2804, allocations: 38.75 kB / 0.7918 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.2805, allocations: 16.75 kB / 0.7918 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.2807, allocations: 244.9 kB / 0.7921 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2807, allocations: 4.359 kB / 0.7921 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.2808, allocations: 11.92 kB / 0.7921 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.281, allocations: 100.2 kB / 0.7922 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.281, allocations: 0 / 0.7922 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.281, allocations: 0 / 0.7922 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.281, allocations: 4 kB / 0.7922 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.2811, allocations: 35.91 kB / 0.7922 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004843/0.2816, allocations: 348.7 kB / 0.7926 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.2819, allocations: 94.73 kB / 0.7926 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.136e-05/0.282, allocations: 36.78 kB / 0.7927 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.282, allocations: 4 kB / 0.7927 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.2822, allocations: 75.38 kB / 0.7928 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.2822, allocations: 4 kB / 0.7928 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003452/0.2826, allocations: 145.4 kB / 0.7929 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.2826, allocations: 106.8 kB / 0.793 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.2829, allocations: 271.3 kB / 0.7933 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.2829, allocations: 29.7 kB / 0.7933 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.164e-05/0.283, allocations: 116.1 kB / 0.7934 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.2831, allocations: 15.8 kB / 0.7934 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.2831, allocations: 13.72 kB / 0.7934 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.2832, allocations: 334.8 kB / 0.7937 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.2833, allocations: 23.98 kB / 0.7938 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.313e-05/0.2834, allocations: 72.2 kB / 0.7938 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.2835, allocations: 73.62 kB / 0.7939 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2835, allocations: 0 / 0.7939 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001936/0.2837, allocations: 121.4 kB / 0.794 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2838, allocations: 4 kB / 0.794 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2838, allocations: 4 kB / 0.794 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2838, allocations: 0 / 0.794 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.2839, allocations: 11.94 kB / 0.794 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.2839, allocations: 4 kB / 0.7941 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.745e-05/0.284, allocations: 19.77 kB / 0.7941 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.284, allocations: 0 / 0.7941 GB, free: 4.934 MB / 0.6075 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.0001316/0.2842, allocations: 145.9 kB / 0.7942 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.2842, allocations: 15.81 kB / 0.7942 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.805e-05/0.2842, allocations: 21.39 kB / 0.7942 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.2843, allocations: 0 / 0.7942 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.2843, allocations: 0 / 0.7942 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2843, allocations: 3.938 kB / 0.7942 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.2845, allocations: 221.6 kB / 0.7945 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2845, allocations: 4 kB / 0.7945 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.642e-05/0.2845, allocations: 4 kB / 0.7945 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2845, allocations: 0 / 0.7945 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.2846, allocations: 11.98 kB / 0.7945 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2846, allocations: 0 / 0.7945 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2846, allocations: 4 kB / 0.7945 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002269/0.2848, allocations: 141.2 kB / 0.7946 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.874e-05/0.2849, allocations: 96.92 kB / 0.7947 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.2849, allocations: 0 / 0.7947 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.491e-05/0.285, allocations: 7.984 kB / 0.7947 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.285, allocations: 15.94 kB / 0.7947 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.285, allocations: 7.984 kB / 0.7947 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001689/0.2852, allocations: 188.6 kB / 0.7949 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2852, allocations: 0 / 0.7949 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002379/0.2855, allocations: 43.92 kB / 0.795 GB, free: 3.922 MB / 0.6075 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.001441/0.2869, allocations: 1.002 MB / 0.7959 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002066/0.2871, allocations: 67.95 kB / 0.796 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2871, allocations: 0 / 0.796 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.716e-05/0.2872, allocations: 35.92 kB / 0.796 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.2875, allocations: 42.55 kB / 0.7961 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.2897, allocations: 1.965 MB / 0.798 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.29, allocations: 0.7278 MB / 0.7987 GB, free: 116 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.618e-05/0.2901, allocations: 29.36 kB / 0.7987 GB, free: 84 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/0.2902, allocations: 47.42 kB / 0.7988 GB, free: 40 kB / 0.6075 GB Notification: Performance of SimCode: time 4.31e-07/0.2902, allocations: 0 / 0.7988 GB, free: 40 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01414/0.3044, allocations: 4.183 MB / 0.8029 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.3046, allocations: 250.9 kB / 0.8031 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.03, allocations: 0 / 0.8031 GB, free: 11.73 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)