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.334/1.334, allocations: 251.5 MB / 266.7 MB, free: 11.02 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.000901/0.000901, allocations: 165.9 kB / 325.8 MB, free: 2.699 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.752/1.752, allocations: 205 MB / 0.576 GB, free: 20.95 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.0009624/0.0009626, allocations: 109.9 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003569, allocations: 10.78 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2276, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002432/0.23, allocations: 1.514 MB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2316, allocations: 1.019 MB / 0.8987 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2317, allocations: 3.938 kB / 0.8987 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0004007/0.2321, allocations: 59.84 kB / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.2323, allocations: 63.75 kB / 0.8988 GB, free: 65.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.2328, allocations: 182 kB / 0.899 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.233, allocations: 143.6 kB / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.2331, allocations: 17.11 kB / 0.8991 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.901e-05/0.2332, allocations: 59.64 kB / 0.8992 GB, free: 65 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.2333, allocations: 59.75 kB / 0.8992 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2333, allocations: 4 kB / 0.8992 GB, free: 64.94 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.2335, allocations: 51.97 kB / 0.8993 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.2335, allocations: 43.83 kB / 0.8993 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.249e-05/0.2336, allocations: 47.62 kB / 0.8994 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.2339, allocations: 187.5 kB / 0.8996 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2339, allocations: 0 / 0.8996 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.093e-06/0.2339, allocations: 0 / 0.8996 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2339, allocations: 0 / 0.8996 GB, free: 64.62 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.0005851/0.2345, allocations: 472.4 kB / 0.9 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.2346, allocations: 8.031 kB / 0.9 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.829e-05/0.2346, allocations: 46.67 kB / 0.9001 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.2347, allocations: 12.75 kB / 0.9001 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.2349, allocations: 252.9 kB / 0.9003 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.235, allocations: 4.375 kB / 0.9003 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.235, allocations: 7.938 kB / 0.9003 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.2352, allocations: 96.16 kB / 0.9004 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2352, allocations: 4 kB / 0.9004 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2352, allocations: 0 / 0.9004 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.2352, allocations: 0 / 0.9004 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.2354, allocations: 31.98 kB / 0.9004 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.2359, allocations: 364.6 kB / 0.9008 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.2361, allocations: 86.66 kB / 0.9009 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.295e-05/0.2362, allocations: 32.84 kB / 0.9009 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.2362, allocations: 4 kB / 0.9009 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.2364, allocations: 83.41 kB / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 2.405e-06/0.2364, allocations: 0 / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.000371/0.2368, allocations: 137.5 kB / 0.9011 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.2369, allocations: 110.7 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.2371, allocations: 266.9 kB / 0.9015 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.2371, allocations: 25.7 kB / 0.9015 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.871e-05/0.2372, allocations: 116.1 kB / 0.9016 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.2372, allocations: 27.64 kB / 0.9016 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.2373, allocations: 21.7 kB / 0.9017 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.2373, allocations: 326.8 kB / 0.902 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.193e-05/0.2374, allocations: 27.98 kB / 0.902 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.2375, allocations: 72.2 kB / 0.9021 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.2377, allocations: 69.7 kB / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2377, allocations: 192 / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001699/0.2379, allocations: 109.4 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2379, allocations: 7.938 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2379, allocations: 0 / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2379, allocations: 3.984 kB / 0.9023 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.238, allocations: 16.05 kB / 0.9023 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.238, allocations: 400 / 0.9023 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.366e-05/0.2381, allocations: 15.95 kB / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.2381, allocations: 7.984 kB / 0.9023 GB, free: 61.52 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 ($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.0001477/0.2383, allocations: 146.4 kB / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.2383, allocations: 15.81 kB / 0.9024 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.178e-05/0.2384, allocations: 17.41 kB / 0.9025 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.2384, allocations: 7.984 kB / 0.9025 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.2384, allocations: 0 / 0.9025 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.2384, allocations: 3.938 kB / 0.9025 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.2386, allocations: 221.5 kB / 0.9027 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2386, allocations: 4 kB / 0.9027 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.45e-05/0.2386, allocations: 4 kB / 0.9027 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2386, allocations: 0 / 0.9027 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2387, allocations: 4 kB / 0.9027 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2387, allocations: 3.984 kB / 0.9027 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2387, allocations: 3.984 kB / 0.9027 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.2389, allocations: 144.8 kB / 0.9028 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.2389, allocations: 100.9 kB / 0.9029 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.239, allocations: 8 kB / 0.9029 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.972e-05/0.239, allocations: 0 / 0.9029 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.2391, allocations: 11.92 kB / 0.903 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.2391, allocations: 12 kB / 0.903 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000147/0.2393, allocations: 200.4 kB / 0.9032 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2393, allocations: 0 / 0.9032 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002392/0.2395, allocations: 31.91 kB / 0.9032 GB, free: 60.5 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.001593/0.2411, allocations: 0.993 MB / 0.9042 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002748/0.2414, allocations: 67.91 kB / 0.9042 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.2414, allocations: 0 / 0.9042 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.196e-05/0.2415, allocations: 31.98 kB / 0.9043 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.2419, allocations: 47.95 kB / 0.9043 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.2441, allocations: 1.951 MB / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.2443, allocations: 0.7278 MB / 0.9069 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.778e-05/0.2444, allocations: 25.38 kB / 0.9069 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.2445, allocations: 51.42 kB / 0.907 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of SimCode: time 3.5e-07/0.2445, allocations: 0 / 0.907 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01443/0.259, allocations: 4.219 MB / 0.9111 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.2592, allocations: 251.6 kB / 0.9114 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/1.964, allocations: 0 / 0.9114 GB, free: 52.27 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)