Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_dev_IDEAS_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.0009984/0.001002, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 197.3 kB / 16.53 MB, free: 6.668 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9536/0.9536, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 66 kB / 0.5054 GB, free: 5.285 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1427, allocations: 80.93 MB / 0.5845 GB, free: 4.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.003452/0.1462, allocations: 1.76 MB / 0.5862 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1481, allocations: 1.104 MB / 0.5873 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.1483, allocations: 4 kB / 0.5873 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.1486, allocations: 55.73 kB / 0.5873 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.1489, allocations: 75.67 kB / 0.5874 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006617/0.1495, allocations: 230.3 kB / 0.5876 GB, free: 1.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.1498, allocations: 147.7 kB / 0.5878 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1499, allocations: 21.11 kB / 0.5878 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.15, allocations: 71.64 kB / 0.5878 GB, free: 1.035 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.1502, allocations: 67.75 kB / 0.5879 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.1502, allocations: 4 kB / 0.5879 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.1504, allocations: 71.89 kB / 0.588 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.952e-05/0.1505, allocations: 43.84 kB / 0.588 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.518e-05/0.1506, allocations: 55.61 kB / 0.5881 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002824/0.1508, allocations: 199.7 kB / 0.5883 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1509, allocations: 4 kB / 0.5883 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1509, allocations: 0 / 0.5883 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1509, allocations: 0 / 0.5883 GB, free: 0.5977 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.0006694/0.1515, allocations: 488.3 kB / 0.5887 GB, free: 68 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1516, allocations: 12.03 kB / 0.5887 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.1516, allocations: 30.75 kB / 0.5888 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.587e-05/0.1517, allocations: 16.75 kB / 0.5888 GB, free: 0 / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.152, allocations: 252.9 kB / 0.589 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.152, allocations: 4.375 kB / 0.589 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.152, allocations: 7.938 kB / 0.589 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.1523, allocations: 96.17 kB / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1523, allocations: 0 / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.1523, allocations: 4 kB / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.1523, allocations: 7.984 kB / 0.5891 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.1524, allocations: 31.92 kB / 0.5892 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004991/0.153, allocations: 356.6 kB / 0.5895 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.1532, allocations: 90.7 kB / 0.5896 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.453e-05/0.1533, allocations: 32.84 kB / 0.5896 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1533, allocations: 7.969 kB / 0.5896 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.1535, allocations: 75.39 kB / 0.5897 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 3.246e-06/0.1535, allocations: 3.984 kB / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003668/0.1539, allocations: 145.4 kB / 0.5899 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.154, allocations: 102.8 kB / 0.59 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.1543, allocations: 266.9 kB / 0.5902 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1543, allocations: 33.7 kB / 0.5902 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.1544, allocations: 116 kB / 0.5904 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.1544, allocations: 19.8 kB / 0.5904 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.1545, allocations: 25.7 kB / 0.5904 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1546, allocations: 326.8 kB / 0.5907 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.413e-05/0.1547, allocations: 31.98 kB / 0.5907 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1548, allocations: 76.14 kB / 0.5908 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.1549, allocations: 65.7 kB / 0.5909 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1549, allocations: 0 / 0.5909 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002204/0.1552, allocations: 113.4 kB / 0.591 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1552, allocations: 8.031 kB / 0.591 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.1552, allocations: 400 / 0.591 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1552, allocations: 0 / 0.591 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.703e-05/0.1553, allocations: 15.98 kB / 0.591 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1553, allocations: 0 / 0.591 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.908e-05/0.1554, allocations: 15.78 kB / 0.591 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.1554, allocations: 7.984 kB / 0.591 GB, free: 13.48 MB / 0.4981 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 ($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 0.0001195/0.1556, allocations: 146.5 kB / 0.5912 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.1556, allocations: 19.81 kB / 0.5912 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.804e-05/0.1556, allocations: 25.33 kB / 0.5912 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.1557, allocations: 3.984 kB / 0.5912 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1557, allocations: 4 kB / 0.5912 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1557, allocations: 7.875 kB / 0.5912 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.1559, allocations: 217.6 kB / 0.5914 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1559, allocations: 0 / 0.5914 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.1559, allocations: 4 kB / 0.5914 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1559, allocations: 0 / 0.5914 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1559, allocations: 4 kB / 0.5914 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.156, allocations: 0 / 0.5914 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.156, allocations: 7.984 kB / 0.5914 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.1562, allocations: 144.8 kB / 0.5916 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.051e-05/0.1563, allocations: 92.91 kB / 0.5917 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.1563, allocations: 4 kB / 0.5917 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.456e-05/0.1564, allocations: 0 / 0.5917 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.1564, allocations: 15.92 kB / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.1564, allocations: 7.938 kB / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001733/0.1566, allocations: 200.6 kB / 0.5919 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1566, allocations: 0 / 0.5919 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002616/0.1569, allocations: 32 kB / 0.5919 GB, free: 12.47 MB / 0.4981 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 (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.001364/0.1583, allocations: 0.996 MB / 0.5929 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.1585, allocations: 75.91 kB / 0.593 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1585, allocations: 0 / 0.593 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.097e-05/0.1586, allocations: 35.98 kB / 0.593 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1589, allocations: 49.7 kB / 0.593 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.161, allocations: 1.922 MB / 0.5949 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.1612, allocations: 0.7317 MB / 0.5956 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.142e-05/0.1613, allocations: 33.3 kB / 0.5957 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.249e-05/0.1614, allocations: 43.42 kB / 0.5957 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of SimCode: time 4.3e-07/0.1614, allocations: 0 / 0.5957 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.1991, allocations: 4.594 MB / 0.6002 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.189/9.388, allocations: 14.53 kB / 0.6002 GB, free: 4.102 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)