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.0009025/0.0009026, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0008554/0.0008554, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.13/1.13, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.551/1.551, allocations: 292.3 MB / 0.5486 GB, free: 13.6 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.00141/0.00141, allocations: 68.47 kB / 0.6711 GB, free: 26.49 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2147, allocations: 114.6 MB / 0.783 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002737/0.2174, allocations: 1.828 MB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.2188, allocations: 1.023 MB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.2188, allocations: 0 / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.2191, allocations: 47.81 kB / 0.7858 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.2193, allocations: 71.8 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.2198, allocations: 187.7 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.2199, allocations: 147.6 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.22, allocations: 21.11 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.014e-05/0.2201, allocations: 59.77 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.64e-05/0.2202, allocations: 67.69 kB / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.2202, allocations: 8 kB / 0.7863 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.2204, allocations: 63.97 kB / 0.7864 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.433e-05/0.2204, allocations: 43.84 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.907e-05/0.2205, allocations: 55.66 kB / 0.7865 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.2208, allocations: 207.6 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.2208, allocations: 0 / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2208, allocations: 4 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.2208, allocations: 0 / 0.7867 GB, free: 9.945 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.0005451/0.2213, allocations: 492.2 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2214, allocations: 12.03 kB / 0.7872 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.012e-05/0.2214, allocations: 34.75 kB / 0.7872 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.2215, allocations: 20.73 kB / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002391/0.2217, allocations: 244.9 kB / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.2217, allocations: 12.31 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.2218, allocations: 7.938 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.2219, allocations: 88.23 kB / 0.7876 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2219, allocations: 0 / 0.7876 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.222, allocations: 4 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.222, allocations: 11.97 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.506e-05/0.2221, allocations: 31.92 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004309/0.2225, allocations: 360.6 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.2227, allocations: 86.7 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.374e-05/0.2228, allocations: 32.84 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2228, allocations: 3.984 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.223, allocations: 83.38 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.223, allocations: 0 / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003138/0.2234, allocations: 141.6 kB / 0.7883 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.2234, allocations: 106.8 kB / 0.7884 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.2236, allocations: 267.4 kB / 0.7886 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.2237, allocations: 33.7 kB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.107e-05/0.2238, allocations: 116 kB / 0.7888 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.2238, allocations: 23.8 kB / 0.7888 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.2238, allocations: 25.7 kB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2239, allocations: 326.8 kB / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.224, allocations: 27.98 kB / 0.7892 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.839e-05/0.2241, allocations: 72.27 kB / 0.7892 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.2243, allocations: 77.7 kB / 0.7893 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2243, allocations: 3.938 kB / 0.7893 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002003/0.2245, allocations: 109.5 kB / 0.7894 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.2245, allocations: 7.938 kB / 0.7894 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2245, allocations: 0 / 0.7894 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.2245, allocations: 3.984 kB / 0.7894 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.652e-05/0.2246, allocations: 12.19 kB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.2246, allocations: 0 / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.2247, allocations: 19.84 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.2247, allocations: 11.98 kB / 0.7895 GB, free: 6.809 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.0001085/0.2248, allocations: 136.7 kB / 0.7896 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.2248, allocations: 15.81 kB / 0.7896 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.811e-05/0.2249, allocations: 17.41 kB / 0.7896 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.2249, allocations: 3.984 kB / 0.7896 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2249, allocations: 0 / 0.7896 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2249, allocations: 7.938 kB / 0.7897 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.2251, allocations: 225.5 kB / 0.7899 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2251, allocations: 4 kB / 0.7899 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.2251, allocations: 7.938 kB / 0.7899 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.2252, allocations: 0 / 0.7899 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2252, allocations: 4 kB / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2252, allocations: 0 / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2252, allocations: 3.984 kB / 0.7899 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002282/0.2254, allocations: 140.9 kB / 0.79 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.2255, allocations: 92.91 kB / 0.7901 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.2255, allocations: 7.984 kB / 0.7901 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.416e-05/0.2256, allocations: 8 kB / 0.7901 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.2256, allocations: 11.92 kB / 0.7901 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2256, allocations: 4 kB / 0.7901 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001531/0.2258, allocations: 192.6 kB / 0.7903 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2258, allocations: 4 kB / 0.7903 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002222/0.226, allocations: 31.94 kB / 0.7904 GB, free: 5.812 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.001246/0.2273, allocations: 0.9995 MB / 0.7913 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.2275, allocations: 75.91 kB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2275, allocations: 0 / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.505e-05/0.2276, allocations: 35.98 kB / 0.7914 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.2278, allocations: 36.28 kB / 0.7915 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.2298, allocations: 1.969 MB / 0.7934 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2301, allocations: 0.7239 MB / 0.7941 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.474e-05/0.2302, allocations: 25.08 kB / 0.7941 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/0.2302, allocations: 47.42 kB / 0.7942 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2303, allocations: 0 / 0.7942 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.086/2.317, allocations: 4.488 MB / 0.7986 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/2.317, allocations: 239 kB / 0.7988 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.377/5.694, allocations: 4 kB / 0.7988 GB, free: 13.3 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)