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 2.705/2.705, allocations: 287.5 MB / 302.4 MB, free: 8.309 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.001386/0.001386, allocations: 178.2 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.201/2.201, allocations: 205.4 MB / 0.6297 GB, free: 10.57 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.001338/0.001338, allocations: 92.22 kB / 0.743 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007229/0.0007232, allocations: 12.77 kB / 0.8659 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2248, allocations: 115.3 MB / 0.9784 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002292/0.2271, allocations: 1.455 MB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002063/0.2293, allocations: 0.9418 MB / 0.9808 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.2295, allocations: 0 / 0.9808 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000333/0.2298, allocations: 55.8 kB / 0.9808 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.2301, allocations: 59.81 kB / 0.9809 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007615/0.2308, allocations: 180.2 kB / 0.9811 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002646/0.2311, allocations: 123.7 kB / 0.9812 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.2313, allocations: 25.09 kB / 0.9812 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.2315, allocations: 55.72 kB / 0.9813 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.2317, allocations: 55.75 kB / 0.9813 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.2318, allocations: 4 kB / 0.9813 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003046/0.2321, allocations: 51.95 kB / 0.9814 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2323, allocations: 35.84 kB / 0.9814 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.914e-05/0.2323, allocations: 41.64 kB / 0.9814 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.2327, allocations: 144 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.2327, allocations: 8 kB / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.585e-06/0.2328, allocations: 0 / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.2328, allocations: 0 / 0.9816 GB, free: 24.99 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.0007563/0.2336, allocations: 472.3 kB / 0.982 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.2336, allocations: 16.02 kB / 0.9821 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.695e-05/0.2337, allocations: 34.56 kB / 0.9821 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.576e-05/0.2337, allocations: 19.77 kB / 0.9821 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.2341, allocations: 243.7 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.2341, allocations: 0 / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.2342, allocations: 7.938 kB / 0.9823 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.2345, allocations: 104.2 kB / 0.9824 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2345, allocations: 0 / 0.9824 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.2345, allocations: 0 / 0.9824 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/0.2345, allocations: 4 kB / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.2347, allocations: 39.92 kB / 0.9825 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006225/0.2353, allocations: 348.6 kB / 0.9828 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.2357, allocations: 94.66 kB / 0.9829 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.2358, allocations: 28.84 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.2358, allocations: 4 kB / 0.9829 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.2361, allocations: 83.33 kB / 0.983 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 3.206e-06/0.2361, allocations: 4 kB / 0.983 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0005085/0.2366, allocations: 141.5 kB / 0.9832 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.2367, allocations: 106.8 kB / 0.9833 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.237, allocations: 263.7 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.2371, allocations: 25.7 kB / 0.9835 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2372, allocations: 116.1 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.2373, allocations: 23.66 kB / 0.9837 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.396e-06/0.2373, allocations: 0 / 0.9837 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.2374, allocations: 330.8 kB / 0.984 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2375, allocations: 27.98 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.2376, allocations: 68.2 kB / 0.9841 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.2378, allocations: 36 kB / 0.9841 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2378, allocations: 0 / 0.9841 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003141/0.2381, allocations: 117.4 kB / 0.9842 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2381, allocations: 11.95 kB / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2381, allocations: 0 / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.2382, allocations: 0 / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.2383, allocations: 15.98 kB / 0.9843 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2384, allocations: 192 / 0.9843 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2385, allocations: 7.938 kB / 0.9843 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.2385, allocations: 7.938 kB / 0.9843 GB, free: 21.97 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 0.0001519/0.2387, allocations: 139.1 kB / 0.9844 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.302e-05/0.2387, allocations: 19.84 kB / 0.9844 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.884e-05/0.2388, allocations: 25.34 kB / 0.9844 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.2388, allocations: 0 / 0.9844 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2388, allocations: 8.047 kB / 0.9845 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2388, allocations: 3.984 kB / 0.9845 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.2391, allocations: 221.6 kB / 0.9847 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2391, allocations: 0 / 0.9847 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.928e-05/0.2392, allocations: 11.92 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2392, allocations: 0 / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2392, allocations: 4 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2392, allocations: 7.953 kB / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2392, allocations: 0 / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.2396, allocations: 137.3 kB / 0.9848 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.036e-05/0.2397, allocations: 96.91 kB / 0.9849 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.2397, allocations: 4 kB / 0.9849 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.252e-05/0.2398, allocations: 4 kB / 0.9849 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.2399, allocations: 11.94 kB / 0.9849 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.2399, allocations: 8 kB / 0.9849 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002237/0.2401, allocations: 196.4 kB / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.282e-06/0.2402, allocations: 0 / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006455/0.2408, allocations: 43.78 kB / 0.9852 GB, free: 20.96 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.002095/0.2429, allocations: 1.003 MB / 0.9861 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.2434, allocations: 75.89 kB / 0.9862 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2434, allocations: 0 / 0.9862 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.2436, allocations: 31.98 kB / 0.9863 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.244, allocations: 38.16 kB / 0.9863 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/0.2461, allocations: 0.9713 MB / 0.9872 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.2463, allocations: 0.7278 MB / 0.9879 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001411/0.2465, allocations: 21.38 kB / 0.988 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2466, allocations: 47.42 kB / 0.988 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of SimCode: time 1.182e-06/0.2466, allocations: 4 kB / 0.988 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.2716, allocations: 4.145 MB / 0.9921 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003715/0.2721, allocations: 233.4 kB / 0.9923 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.722/2.994, allocations: 0 / 0.9923 GB, free: 13.85 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)