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 1.61/1.61, allocations: 287.4 MB / 302.6 MB, free: 8.215 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.0009999/0.0009999, allocations: 170.2 kB / 371.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.4 MB / 0.6298 GB, free: 10.6 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.0007677/0.0007679, allocations: 93.27 kB / 0.7431 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004145/0.0004145, allocations: 13.16 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2262, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002073/0.2283, allocations: 1.454 MB / 0.9802 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2298, allocations: 0.9505 MB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.797e-05/0.2299, allocations: 0 / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.2303, allocations: 51.81 kB / 0.9811 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.2305, allocations: 71.66 kB / 0.9812 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.2311, allocations: 170.1 kB / 0.9814 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.2313, allocations: 123.6 kB / 0.9815 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.2314, allocations: 17.12 kB / 0.9815 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.241e-05/0.2315, allocations: 55.77 kB / 0.9815 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.69e-05/0.2316, allocations: 51.77 kB / 0.9816 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.2316, allocations: 4 kB / 0.9816 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.2317, allocations: 55.89 kB / 0.9817 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.235e-05/0.2318, allocations: 31.91 kB / 0.9817 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.117e-05/0.2319, allocations: 45.64 kB / 0.9817 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.232, allocations: 156 kB / 0.9819 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2321, allocations: 3.938 kB / 0.9819 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2321, allocations: 0 / 0.9819 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.117e-06/0.2321, allocations: 0 / 0.9819 GB, free: 24.86 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.0005762/0.2327, allocations: 466.4 kB / 0.9823 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2327, allocations: 16.03 kB / 0.9823 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.2328, allocations: 34.73 kB / 0.9824 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.2328, allocations: 20.75 kB / 0.9824 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.2331, allocations: 248.9 kB / 0.9826 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2331, allocations: 384 / 0.9826 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.2331, allocations: 11.94 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.2333, allocations: 96.16 kB / 0.9827 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2333, allocations: 3.984 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.2333, allocations: 4 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.2334, allocations: 7.938 kB / 0.9827 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.615e-05/0.2335, allocations: 35.92 kB / 0.9828 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.2339, allocations: 352.7 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.2341, allocations: 90.75 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.2342, allocations: 32.78 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.2342, allocations: 4 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.2344, allocations: 87.34 kB / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.2344, allocations: 0 / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0002954/0.2347, allocations: 129.5 kB / 0.9834 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.2348, allocations: 110.8 kB / 0.9836 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.235, allocations: 271.5 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.235, allocations: 33.7 kB / 0.9838 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.2351, allocations: 116.1 kB / 0.984 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.2351, allocations: 19.8 kB / 0.984 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-06/0.2351, allocations: 0 / 0.984 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.2352, allocations: 330.8 kB / 0.9843 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.2352, allocations: 23.98 kB / 0.9843 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.516e-05/0.2353, allocations: 72.28 kB / 0.9844 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.2354, allocations: 69.62 kB / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2354, allocations: 0 / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001708/0.2356, allocations: 109.5 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.2356, allocations: 4 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2356, allocations: 0 / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2357, allocations: 8.031 kB / 0.9846 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.833e-05/0.2358, allocations: 15.92 kB / 0.9846 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.2358, allocations: 4 kB / 0.9846 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.2358, allocations: 15.78 kB / 0.9846 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.2358, allocations: 0 / 0.9846 GB, free: 21.8 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 9.359e-05/0.2359, allocations: 147.1 kB / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.236, allocations: 15.81 kB / 0.9848 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.236, allocations: 17.39 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.236, allocations: 8 kB / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.236, allocations: 0 / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.236, allocations: 3.938 kB / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.2362, allocations: 221.6 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2362, allocations: 4.188 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.826e-05/0.2362, allocations: 7.984 kB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2363, allocations: 3.938 kB / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.2363, allocations: 4 kB / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2363, allocations: 0 / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2363, allocations: 4 kB / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.2365, allocations: 144.8 kB / 0.9852 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.2365, allocations: 100.9 kB / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.2366, allocations: 0 / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.097e-05/0.2366, allocations: 4 kB / 0.9853 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.2367, allocations: 19.91 kB / 0.9853 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.2367, allocations: 0 / 0.9853 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001305/0.2368, allocations: 200.4 kB / 0.9855 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2368, allocations: 3.938 kB / 0.9855 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002127/0.237, allocations: 35.94 kB / 0.9855 GB, free: 20.78 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.001107/0.2382, allocations: 1.005 MB / 0.9865 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.2384, allocations: 67.95 kB / 0.9865 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2384, allocations: 4.062 kB / 0.9866 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.588e-05/0.2385, allocations: 35.92 kB / 0.9866 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.2387, allocations: 38.44 kB / 0.9866 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.24, allocations: 0.967 MB / 0.9876 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.2402, allocations: 0.7278 MB / 0.9883 GB, free: 18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.337e-05/0.2403, allocations: 25.38 kB / 0.9883 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.2404, allocations: 47.42 kB / 0.9883 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of SimCode: time 2.41e-07/0.2404, allocations: 0 / 0.9883 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01477/0.2552, allocations: 4.126 MB / 0.9924 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/0.2553, allocations: 226.1 kB / 0.9926 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.959, allocations: 3.938 kB / 0.9926 GB, free: 13.7 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)