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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 195.1 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 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: 286.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8558/0.8558, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 96.8 kB / 0.5948 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1341, allocations: 86.98 MB / 0.6797 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002771/0.1369, allocations: 1.821 MB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.1385, allocations: 1.082 MB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.138e-05/0.1387, allocations: 0 / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.1389, allocations: 55.81 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.1391, allocations: 75.78 kB / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00051/0.1396, allocations: 197.3 kB / 0.6829 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1398, allocations: 143.6 kB / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.017e-05/0.1399, allocations: 34.66 kB / 0.6831 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.103e-05/0.14, allocations: 64.47 kB / 0.6831 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.1401, allocations: 63.75 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.1401, allocations: 12 kB / 0.6832 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1402, allocations: 71.89 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.825e-05/0.1403, allocations: 39.84 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.139e-05/0.1403, allocations: 59.66 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.1406, allocations: 191.4 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1406, allocations: 8 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1406, allocations: 0 / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1406, allocations: 0 / 0.6835 GB, free: 13.04 MB / 494.1 MB 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.0004954/0.1411, allocations: 492.2 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.618e-05/0.1411, allocations: 16.03 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.27e-05/0.1412, allocations: 38.69 kB / 0.6841 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.1412, allocations: 16.75 kB / 0.6841 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.1414, allocations: 253.5 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1414, allocations: 384 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1415, allocations: 11.92 kB / 0.6843 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.1416, allocations: 96.17 kB / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.789e-06/0.1416, allocations: 4 kB / 0.6844 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.1417, allocations: 0 / 0.6844 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.1417, allocations: 7.984 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.865e-05/0.1418, allocations: 27.98 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003831/0.1422, allocations: 356.6 kB / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.1424, allocations: 90.67 kB / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.614e-05/0.1424, allocations: 32.84 kB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.1425, allocations: 0 / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.1426, allocations: 83.41 kB / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.1426, allocations: 0 / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002857/0.1429, allocations: 141.4 kB / 0.6851 GB, free: 11.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.143, allocations: 106.8 kB / 0.6852 GB, free: 11.08 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.1432, allocations: 266.9 kB / 0.6855 GB, free: 10.81 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.1432, allocations: 29.7 kB / 0.6855 GB, free: 10.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.1433, allocations: 120.1 kB / 0.6856 GB, free: 10.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.1433, allocations: 23.66 kB / 0.6857 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.1434, allocations: 29.64 kB / 0.6857 GB, free: 10.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.1435, allocations: 326.8 kB / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.415e-05/0.1435, allocations: 27.98 kB / 0.686 GB, free: 10.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.108e-05/0.1436, allocations: 80.2 kB / 0.6861 GB, free: 10.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.1438, allocations: 69.69 kB / 0.6862 GB, free: 10.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1438, allocations: 0 / 0.6862 GB, free: 10.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001952/0.144, allocations: 109.4 kB / 0.6863 GB, free: 9.957 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/0.144, allocations: 4 kB / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.144, allocations: 4.031 kB / 0.6863 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.993e-06/0.144, allocations: 0 / 0.6863 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.636e-05/0.1441, allocations: 19.98 kB / 0.6863 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.1441, allocations: 0 / 0.6863 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/0.1442, allocations: 7.938 kB / 0.6863 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.1442, allocations: 7.984 kB / 0.6863 GB, free: 9.914 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.824e-05/0.1443, allocations: 141.8 kB / 0.6864 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.1443, allocations: 15.81 kB / 0.6865 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.931e-05/0.1444, allocations: 17.41 kB / 0.6865 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1444, allocations: 4 kB / 0.6865 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1444, allocations: 7.984 kB / 0.6865 GB, free: 9.719 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1444, allocations: 3.938 kB / 0.6865 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.1446, allocations: 221.6 kB / 0.6867 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1446, allocations: 0 / 0.6867 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.663e-05/0.1446, allocations: 4 kB / 0.6867 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1446, allocations: 0 / 0.6867 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1446, allocations: 4 kB / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1446, allocations: 400 / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1446, allocations: 0 / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.1449, allocations: 152.8 kB / 0.6869 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1449, allocations: 100.9 kB / 0.687 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.145, allocations: 4 kB / 0.687 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.933e-05/0.145, allocations: 4 kB / 0.687 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.1451, allocations: 15.92 kB / 0.687 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.1451, allocations: 8 kB / 0.687 GB, free: 9.125 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.1452, allocations: 196.6 kB / 0.6872 GB, free: 8.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1452, allocations: 4.188 kB / 0.6872 GB, free: 8.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1455, allocations: 28 kB / 0.6872 GB, free: 8.902 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001212/0.1467, allocations: 0.9972 MB / 0.6882 GB, free: 8.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.1469, allocations: 71.91 kB / 0.6882 GB, free: 7.969 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1469, allocations: 0 / 0.6882 GB, free: 7.969 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.407e-05/0.147, allocations: 39.92 kB / 0.6883 GB, free: 7.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1472, allocations: 42.78 kB / 0.6883 GB, free: 7.891 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1491, allocations: 1.982 MB / 0.6903 GB, free: 5.816 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.1493, allocations: 0.7201 MB / 0.691 GB, free: 5.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.162e-05/0.1494, allocations: 33.38 kB / 0.691 GB, free: 5.039 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.1495, allocations: 47.42 kB / 0.691 GB, free: 4.992 MB / 494.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1495, allocations: 0 / 0.691 GB, free: 4.992 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.485/2.635, allocations: 4.507 MB / 0.6954 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003724/2.635, allocations: 254.3 kB / 0.6957 GB, free: 404 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.284/5.919, allocations: 3.562 kB / 0.6957 GB, free: 404 kB / 494.1 MB (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/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)