Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.319/1.319, allocations: 252 MB / 267.3 MB, free: 10.81 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 181.7 kB / 327 MB, free: 2.074 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.659/1.659, allocations: 205.4 MB / 0.578 GB, free: 20.13 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007933/0.0007935, allocations: 79.69 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003836, allocations: 9.594 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2182, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002193/0.2204, allocations: 1.493 MB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001559/0.222, allocations: 1.007 MB / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.2222, allocations: 3.938 kB / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.2226, allocations: 51.86 kB / 0.9034 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.2228, allocations: 67.75 kB / 0.9035 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.2235, allocations: 184.2 kB / 0.9036 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.2237, allocations: 131.6 kB / 0.9038 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.2238, allocations: 21.11 kB / 0.9038 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2239, allocations: 59.66 kB / 0.9038 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.224, allocations: 59.75 kB / 0.9039 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.2241, allocations: 4 kB / 0.9039 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.2243, allocations: 63.89 kB / 0.904 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.2243, allocations: 31.91 kB / 0.904 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.486e-05/0.2244, allocations: 77.31 kB / 0.9041 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.2247, allocations: 195.6 kB / 0.9043 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2247, allocations: 0 / 0.9043 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2247, allocations: 0 / 0.9043 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2247, allocations: 0 / 0.9043 GB, free: 59.94 MB / 0.6042 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.0005766/0.2253, allocations: 456.6 kB / 0.9047 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.2254, allocations: 16.03 kB / 0.9047 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.2254, allocations: 38.67 kB / 0.9047 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.163e-05/0.2255, allocations: 16.75 kB / 0.9048 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.2257, allocations: 248.9 kB / 0.905 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2258, allocations: 4.359 kB / 0.905 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.2258, allocations: 11.94 kB / 0.905 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.226, allocations: 100.1 kB / 0.9051 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.226, allocations: 4 kB / 0.9051 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.226, allocations: 0 / 0.9051 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.2261, allocations: 4 kB / 0.9051 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.997e-05/0.2262, allocations: 35.92 kB / 0.9052 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004771/0.2266, allocations: 360.6 kB / 0.9055 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.2269, allocations: 90.66 kB / 0.9056 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.641e-05/0.2269, allocations: 32.84 kB / 0.9056 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.227, allocations: 0 / 0.9056 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.2272, allocations: 83.41 kB / 0.9057 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.2272, allocations: 0 / 0.9057 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003318/0.2275, allocations: 137.5 kB / 0.9058 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.2276, allocations: 106.8 kB / 0.9059 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.2278, allocations: 266.9 kB / 0.9062 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.2278, allocations: 29.7 kB / 0.9062 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.2279, allocations: 116.1 kB / 0.9063 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.2279, allocations: 23.66 kB / 0.9063 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.2279, allocations: 0 / 0.9063 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.47e-05/0.228, allocations: 330.8 kB / 0.9067 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.39e-05/0.2281, allocations: 23.98 kB / 0.9067 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.708e-05/0.2281, allocations: 76.22 kB / 0.9068 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.2283, allocations: 69.69 kB / 0.9068 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2283, allocations: 0 / 0.9068 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001912/0.2285, allocations: 109.4 kB / 0.9069 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2285, allocations: 8 kB / 0.9069 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2285, allocations: 0 / 0.9069 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.2285, allocations: 4.031 kB / 0.9069 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.512e-05/0.2286, allocations: 19.98 kB / 0.907 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2286, allocations: 0 / 0.907 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.556e-05/0.2287, allocations: 7.938 kB / 0.907 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.2287, allocations: 4 kB / 0.907 GB, free: 56.89 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.2289, allocations: 146.4 kB / 0.9071 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.2289, allocations: 16 kB / 0.9071 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.2289, allocations: 21.39 kB / 0.9071 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.229, allocations: 7.938 kB / 0.9071 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.229, allocations: 0 / 0.9071 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.229, allocations: 11.88 kB / 0.9072 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.2291, allocations: 225.4 kB / 0.9074 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2291, allocations: 0 / 0.9074 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.295e-05/0.2292, allocations: 7.984 kB / 0.9074 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2292, allocations: 0 / 0.9074 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.2292, allocations: 4 kB / 0.9074 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2292, allocations: 0 / 0.9074 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2292, allocations: 0 / 0.9074 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.2294, allocations: 149.2 kB / 0.9075 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.2295, allocations: 93.02 kB / 0.9076 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.2295, allocations: 3.984 kB / 0.9076 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.467e-05/0.2296, allocations: 4 kB / 0.9076 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.2297, allocations: 15.92 kB / 0.9076 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2297, allocations: 4 kB / 0.9076 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001539/0.2298, allocations: 196.4 kB / 0.9078 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2299, allocations: 4 kB / 0.9078 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002365/0.2301, allocations: 39.89 kB / 0.9079 GB, free: 55.86 MB / 0.6042 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.001296/0.2314, allocations: 1.002 MB / 0.9089 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001925/0.2316, allocations: 75.89 kB / 0.9089 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2316, allocations: 0 / 0.9089 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.732e-05/0.2317, allocations: 31.98 kB / 0.909 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.232, allocations: 42.89 kB / 0.909 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.2339, allocations: 1.953 MB / 0.9109 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.2341, allocations: 0.724 MB / 0.9116 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.142e-05/0.2342, allocations: 25.38 kB / 0.9116 GB, free: 52.03 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.885e-05/0.2342, allocations: 55.41 kB / 0.9117 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of SimCode: time 1.142e-06/0.2342, allocations: 0 / 0.9117 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01546/0.2497, allocations: 4.212 MB / 0.9158 GB, free: 47.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.2499, allocations: 257.7 kB / 0.916 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.007, allocations: 4 kB / 0.9161 GB, free: 47.62 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)