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.8561/0.8561, allocations: 141.8 MB / 149.3 MB, free: 9.199 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.001279/0.001279, allocations: 172.9 kB / 182.2 MB, free: 9.434 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.778/1.778, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.001252/0.001252, allocations: 95.8 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002311/0.002311, allocations: 284.8 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.547e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5855/0.5855, allocations: 82.78 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1604/0.7461, allocations: 112.4 MB / 0.8672 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.7464, allocations: 79.95 kB / 0.8673 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01566/0.7621, allocations: 5.5 MB / 0.8726 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7622, allocations: 3.938 kB / 0.8726 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.63e-05/0.7622, allocations: 0 / 0.8726 GB, free: 9.801 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.0006338/0.7628, allocations: 471.7 kB / 0.8731 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.7629, allocations: 12.03 kB / 0.8731 GB, free: 9.277 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.501e-05/0.763, allocations: 15.81 kB / 0.8731 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.7634, allocations: 271.5 kB / 0.8734 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.7635, allocations: 0 / 0.8734 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.7635, allocations: 4 kB / 0.8734 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000108/0.7636, allocations: 31.98 kB / 0.8734 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.7638, allocations: 92.19 kB / 0.8735 GB, free: 8.812 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.7638, allocations: 0 / 0.8735 GB, free: 8.812 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.7638, allocations: 11.91 kB / 0.8735 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.7638, allocations: 4 kB / 0.8735 GB, free: 8.797 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.7644, allocations: 337.2 kB / 0.8738 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.7646, allocations: 82.67 kB / 0.8739 GB, free: 8.34 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.877e-05/0.7646, allocations: 28.92 kB / 0.8739 GB, free: 8.309 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.7646, allocations: 0 / 0.8739 GB, free: 8.309 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.7648, allocations: 83.41 kB / 0.874 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.7648, allocations: 0 / 0.874 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0003018/0.7651, allocations: 109.5 kB / 0.8741 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.7652, allocations: 110.7 kB / 0.8742 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.7655, allocations: 239 kB / 0.8745 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.7655, allocations: 25.7 kB / 0.8745 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.7656, allocations: 116.1 kB / 0.8746 GB, free: 7.582 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.7656, allocations: 19.72 kB / 0.8746 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.7656, allocations: 0 / 0.8746 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.7657, allocations: 330.8 kB / 0.8749 GB, free: 7.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.132e-05/0.7658, allocations: 24 kB / 0.8749 GB, free: 7.207 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.018e-05/0.7659, allocations: 76.22 kB / 0.875 GB, free: 7.117 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.141e-05/0.766, allocations: 34.16 kB / 0.875 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.766, allocations: 0 / 0.875 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001979/0.7662, allocations: 105.4 kB / 0.8751 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.7662, allocations: 8 kB / 0.8752 GB, free: 6.969 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.7662, allocations: 0 / 0.8752 GB, free: 6.969 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.7662, allocations: 0 / 0.8752 GB, free: 6.969 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.548e-05/0.7663, allocations: 12 kB / 0.8752 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.7664, allocations: 8.016 kB / 0.8752 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.397e-05/0.7664, allocations: 7.938 kB / 0.8752 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.7664, allocations: 0 / 0.8752 GB, free: 6.941 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 () * 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.981e-05/0.7666, allocations: 116.9 kB / 0.8753 GB, free: 6.82 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001843/0.7667, allocations: 117.4 kB / 0.8754 GB, free: 6.699 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/0.7668, allocations: 19.81 kB / 0.8754 GB, free: 6.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.767, allocations: 115.6 kB / 0.8755 GB, free: 6.562 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.767, allocations: 11.94 kB / 0.8755 GB, free: 6.551 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.7671, allocations: 7.984 kB / 0.8756 GB, free: 6.543 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.7671, allocations: 0 / 0.8756 GB, free: 6.543 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.7672, allocations: 202 kB / 0.8757 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.7673, allocations: 7.922 kB / 0.8758 GB, free: 6.301 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.7673, allocations: 8 kB / 0.8758 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.7673, allocations: 0 / 0.8758 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.7673, allocations: 4 kB / 0.8758 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7673, allocations: 0 / 0.8758 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7673, allocations: 0 / 0.8758 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.7676, allocations: 144.9 kB / 0.8759 GB, free: 6.129 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.147e-05/0.7677, allocations: 108.8 kB / 0.876 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.7677, allocations: 0 / 0.876 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.902e-05/0.7678, allocations: 4 kB / 0.876 GB, free: 6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.7678, allocations: 7.984 kB / 0.876 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.7678, allocations: 0 / 0.876 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001704/0.768, allocations: 191.4 kB / 0.8762 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.768, allocations: 0 / 0.8762 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002807/0.7683, allocations: 47.92 kB / 0.8762 GB, free: 5.758 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) * 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.01724/0.7855, allocations: 0.9572 MB / 0.8772 GB, free: 4.867 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003656/0.786, allocations: 83.91 kB / 0.8773 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.786, allocations: 0 / 0.8773 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.7861, allocations: 35.98 kB / 0.8773 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/0.7866, allocations: 24.59 kB / 0.8773 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.7876, allocations: 282.6 kB / 0.8776 GB, free: 4.414 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.788, allocations: 0.728 MB / 0.8783 GB, free: 3.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001372/0.7882, allocations: 29.11 kB / 0.8783 GB, free: 3.637 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.7883, allocations: 47.42 kB / 0.8784 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of SimCode: time 7.72e-07/0.7883, allocations: 0 / 0.8784 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.8168, allocations: 3.813 MB / 0.8821 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/0.8171, allocations: 181.4 kB / 0.8823 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.685, allocations: 4 kB / 0.8823 GB, free: 15.6 MB / 0.5573 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)