Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8831/0.8831, allocations: 143.3 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 181 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 223.1 MB / 447.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008811/0.000881, allocations: 88.31 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001806/0.001806, allocations: 271.8 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004472, allocations: 14.09 kB / 0.6929 GB, free: 59.55 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1919, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5813/0.7733, allocations: 113.1 MB / 0.8842 GB, free: 33.14 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.7736, allocations: 80.95 kB / 0.8843 GB, free: 33.14 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01612/0.7897, allocations: 5.557 MB / 0.8897 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.525e-06/0.7898, allocations: 0 / 0.8897 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.549e-05/0.7898, allocations: 2.875 kB / 0.8897 GB, free: 32.57 MB / 0.5417 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.0006598/0.7905, allocations: 0.5032 MB / 0.8902 GB, free: 32.1 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.7905, allocations: 8.312 kB / 0.8902 GB, free: 32.1 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.398e-05/0.7906, allocations: 35.17 kB / 0.8903 GB, free: 32.06 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.7906, allocations: 15.97 kB / 0.8903 GB, free: 32.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.791, allocations: 262.8 kB / 0.8905 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.791, allocations: 4.922 kB / 0.8905 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.7911, allocations: 5.656 kB / 0.8905 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.7913, allocations: 94.5 kB / 0.8906 GB, free: 31.78 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.7913, allocations: 7.938 kB / 0.8906 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.7913, allocations: 0 / 0.8906 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.7914, allocations: 3.281 kB / 0.8906 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.7915, allocations: 37.2 kB / 0.8907 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005654/0.792, allocations: 378.4 kB / 0.891 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.7923, allocations: 91.36 kB / 0.8911 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.7923, allocations: 2.844 kB / 0.8911 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.7925, allocations: 83.7 kB / 0.8912 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.7925, allocations: 0 / 0.8912 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0003857/0.7929, allocations: 220.5 kB / 0.8914 GB, free: 31.28 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.7929, allocations: 102.8 kB / 0.8915 GB, free: 31.16 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.7932, allocations: 250.3 kB / 0.8917 GB, free: 31.05 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.7932, allocations: 29.33 kB / 0.8918 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.7933, allocations: 115.6 kB / 0.8919 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.7933, allocations: 24.06 kB / 0.8919 GB, free: 30.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-06/0.7934, allocations: 2.875 kB / 0.8919 GB, free: 30.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.156e-05/0.7934, allocations: 330.6 kB / 0.8922 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.108e-05/0.7935, allocations: 31.38 kB / 0.8923 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.25e-05/0.7936, allocations: 74.58 kB / 0.8923 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.781e-05/0.7937, allocations: 34.34 kB / 0.8924 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.7937, allocations: 0 / 0.8924 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001995/0.7939, allocations: 117.4 kB / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.7939, allocations: 4.5 kB / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.7939, allocations: 1.922 kB / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.794, allocations: 0 / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.644e-05/0.7941, allocations: 22 kB / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.7941, allocations: 4.328 kB / 0.8925 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.684e-05/0.7942, allocations: 10.97 kB / 0.8925 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.7942, allocations: 4.906 kB / 0.8925 GB, free: 30.51 MB / 0.5417 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.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,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.0001204/0.7943, allocations: 153.8 kB / 0.8927 GB, free: 30.39 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.7943, allocations: 15.44 kB / 0.8927 GB, free: 30.38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.7946, allocations: 131.2 kB / 0.8928 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.7946, allocations: 7.938 kB / 0.8928 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.7946, allocations: 2.5 kB / 0.8928 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7946, allocations: 0 / 0.8928 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.7948, allocations: 238.6 kB / 0.893 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7948, allocations: 0 / 0.893 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-05/0.7949, allocations: 6.594 kB / 0.893 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.7949, allocations: 2.672 kB / 0.8931 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.7949, allocations: 3.984 kB / 0.8931 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.7949, allocations: 1.547 kB / 0.8931 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7949, allocations: 0 / 0.8931 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002223/0.7952, allocations: 160.4 kB / 0.8932 GB, free: 30.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.7952, allocations: 101.7 kB / 0.8933 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.7953, allocations: 3.594 kB / 0.8933 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.808e-05/0.7953, allocations: 6.234 kB / 0.8933 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.7954, allocations: 10.36 kB / 0.8933 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.7954, allocations: 1.969 kB / 0.8933 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001663/0.7956, allocations: 192.9 kB / 0.8935 GB, free: 29.87 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.71e-07/0.7956, allocations: 4 kB / 0.8935 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003027/0.7959, allocations: 54.83 kB / 0.8936 GB, free: 29.85 MB / 0.5417 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.001331/0.7972, allocations: 1.023 MB / 0.8946 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.7975, allocations: 86 kB / 0.8946 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.7975, allocations: 0 / 0.8946 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.393e-05/0.7976, allocations: 38.95 kB / 0.8947 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.7979, allocations: 33.66 kB / 0.8947 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.7993, allocations: 1.134 MB / 0.8958 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.7995, allocations: 0.7289 MB / 0.8965 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.141e-05/0.7996, allocations: 27.67 kB / 0.8966 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.7997, allocations: 50.58 kB / 0.8966 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of SimCode: time 6.61e-07/0.7997, allocations: 0 / 0.8966 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.8167, allocations: 4.266 MB / 0.9008 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.8169, allocations: 234.3 kB / 0.901 GB, free: 27.18 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.68, allocations: 0 / 0.901 GB, free: 27.18 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)