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.842/0.842, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 174.2 kB / 187.3 MB, free: 11.89 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.641/1.641, allocations: 221.3 MB / 441.4 MB, free: 4.59 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.001124/0.001124, allocations: 98.47 kB / 0.5124 GB, free: 24.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001931/0.001931, allocations: 273.8 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.852e-05/4.862e-05, allocations: 8 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5461/0.5462, allocations: 82.77 MB / 0.7644 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.6949, allocations: 113 MB / 0.8747 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003559/0.6954, allocations: 83.61 kB / 0.8748 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01746/0.7129, allocations: 5.539 MB / 0.8802 GB, free: 5.812 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.288e-06/0.7129, allocations: 8 kB / 0.8802 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.043e-05/0.713, allocations: 0 / 0.8802 GB, free: 5.805 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.0008337/0.7138, allocations: 469.1 kB / 0.8807 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.7139, allocations: 8.031 kB / 0.8807 GB, free: 5.289 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.567e-05/0.714, allocations: 38.56 kB / 0.8807 GB, free: 5.242 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.375e-05/0.7141, allocations: 15.81 kB / 0.8807 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.7146, allocations: 263.6 kB / 0.881 GB, free: 4.926 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.7146, allocations: 7.984 kB / 0.881 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.7147, allocations: 4 kB / 0.881 GB, free: 4.914 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.7149, allocations: 100.2 kB / 0.8811 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.7149, allocations: 0 / 0.8811 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.7149, allocations: 0 / 0.8811 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.715, allocations: 0 / 0.8811 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.835e-05/0.7151, allocations: 31.98 kB / 0.8811 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.7157, allocations: 372.7 kB / 0.8815 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.7159, allocations: 94.62 kB / 0.8816 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.123e-05/0.716, allocations: 32.91 kB / 0.8816 GB, free: 4.219 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.716, allocations: 0 / 0.8816 GB, free: 4.219 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.7162, allocations: 81.66 kB / 0.8817 GB, free: 4.129 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 2.013e-06/0.7162, allocations: 0 / 0.8817 GB, free: 4.129 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0003372/0.7166, allocations: 117.5 kB / 0.8818 GB, free: 4.008 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.7167, allocations: 106.8 kB / 0.8819 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.717, allocations: 241.7 kB / 0.8821 GB, free: 3.637 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.717, allocations: 29.7 kB / 0.8821 GB, free: 3.602 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.7171, allocations: 120.1 kB / 0.8823 GB, free: 3.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.7172, allocations: 23.7 kB / 0.8823 GB, free: 3.457 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.7172, allocations: 0 / 0.8823 GB, free: 3.457 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.7174, allocations: 330.8 kB / 0.8826 GB, free: 3.125 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.739e-05/0.7174, allocations: 27.94 kB / 0.8826 GB, free: 3.098 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.529e-05/0.7175, allocations: 76.2 kB / 0.8827 GB, free: 3.008 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.023e-05/0.7176, allocations: 27.98 kB / 0.8827 GB, free: 2.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.7176, allocations: 0 / 0.8827 GB, free: 2.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002181/0.7179, allocations: 113.5 kB / 0.8828 GB, free: 2.863 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.7179, allocations: 13.19 kB / 0.8828 GB, free: 2.852 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.7179, allocations: 0 / 0.8828 GB, free: 2.852 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.7179, allocations: 0 / 0.8828 GB, free: 2.852 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.718, allocations: 12 kB / 0.8829 GB, free: 2.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.7181, allocations: 3.984 kB / 0.8829 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.337e-05/0.7182, allocations: 11.88 kB / 0.8829 GB, free: 2.824 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.7182, allocations: 7.953 kB / 0.8829 GB, free: 2.816 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 0.0001083/0.7183, allocations: 109 kB / 0.883 GB, free: 2.703 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.7183, allocations: 19.84 kB / 0.883 GB, free: 2.684 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.7186, allocations: 128.1 kB / 0.8831 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.7186, allocations: 0 / 0.8831 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.7187, allocations: 0 / 0.8831 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7187, allocations: 4 kB / 0.8831 GB, free: 2.551 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.7189, allocations: 233.5 kB / 0.8834 GB, free: 2.273 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.7189, allocations: 4 kB / 0.8834 GB, free: 2.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.009e-05/0.719, allocations: 11.98 kB / 0.8834 GB, free: 2.258 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.719, allocations: 0 / 0.8834 GB, free: 2.258 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.719, allocations: 8 kB / 0.8834 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.719, allocations: 0 / 0.8834 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.7191, allocations: 0 / 0.8834 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.7193, allocations: 149 kB / 0.8835 GB, free: 2.086 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-05/0.7194, allocations: 104.9 kB / 0.8836 GB, free: 1.965 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.7195, allocations: 7.984 kB / 0.8836 GB, free: 1.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.405e-05/0.7195, allocations: 4 kB / 0.8836 GB, free: 1.953 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.712e-05/0.7196, allocations: 7.984 kB / 0.8836 GB, free: 1.945 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.7196, allocations: 4 kB / 0.8836 GB, free: 1.941 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002203/0.7198, allocations: 196.4 kB / 0.8838 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7198, allocations: 0 / 0.8838 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003063/0.7202, allocations: 59.77 kB / 0.8839 GB, free: 1.691 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.003736/0.7239, allocations: 0.972 MB / 0.8848 GB, free: 0.8203 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003072/0.7242, allocations: 83.89 kB / 0.8849 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7243, allocations: 0 / 0.8849 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.7244, allocations: 35.98 kB / 0.8849 GB, free: 0.7031 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.7247, allocations: 31.97 kB / 0.885 GB, free: 0.6719 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008569/0.7256, allocations: 299.6 kB / 0.8853 GB, free: 356 kB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.726, allocations: 0.736 MB / 0.886 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.7261, allocations: 26.91 kB / 0.886 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.7262, allocations: 47.42 kB / 0.8861 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of SimCode: time 7.92e-07/0.7262, allocations: 0 / 0.8861 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.748, allocations: 4.233 MB / 0.8902 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.7483, allocations: 197.9 kB / 0.8904 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.542, allocations: 0 / 0.8904 GB, free: 11.25 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)