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.00079/0.0007902, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008419/0.0008419, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9479/0.9479, allocations: 135.3 MB / 426.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.00032, allocations: 8 kB / 0.5071 GB, free: 5.043 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1532, allocations: 82.32 MB / 0.5875 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.001952/0.1552, allocations: 1.448 MB / 0.5889 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1566, allocations: 1.007 MB / 0.5899 GB, free: 416 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.141e-05/0.1567, allocations: 4 kB / 0.5899 GB, free: 412 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1569, allocations: 51.81 kB / 0.5899 GB, free: 360 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.1571, allocations: 63.72 kB / 0.59 GB, free: 296 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005084/0.1577, allocations: 199 kB / 0.5902 GB, free: 100 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.1578, allocations: 115.7 kB / 0.5903 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.529e-05/0.1579, allocations: 25.08 kB / 0.5903 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.686e-05/0.158, allocations: 51.72 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.465e-05/0.1581, allocations: 55.75 kB / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.1581, allocations: 0 / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1583, allocations: 51.97 kB / 0.5905 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.214e-05/0.1583, allocations: 43.83 kB / 0.5905 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.583e-05/0.1584, allocations: 45.64 kB / 0.5905 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.1586, allocations: 144 kB / 0.5907 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1586, allocations: 0 / 0.5907 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1586, allocations: 0 / 0.5907 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.1586, allocations: 0 / 0.5907 GB, free: 15.57 MB / 0.4981 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.000554/0.1592, allocations: 476.2 kB / 0.5911 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1592, allocations: 8.031 kB / 0.5911 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.1592, allocations: 34.56 kB / 0.5912 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.1593, allocations: 15.81 kB / 0.5912 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/0.1596, allocations: 251.7 kB / 0.5914 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1596, allocations: 4 kB / 0.5914 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.1596, allocations: 0 / 0.5914 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.1598, allocations: 96.17 kB / 0.5915 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1598, allocations: 0 / 0.5915 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1598, allocations: 4 kB / 0.5915 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.1599, allocations: 3.984 kB / 0.5915 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.866e-05/0.16, allocations: 27.98 kB / 0.5916 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004579/0.1604, allocations: 372.5 kB / 0.5919 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.1607, allocations: 86.69 kB / 0.592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.816e-05/0.1607, allocations: 32.84 kB / 0.592 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1608, allocations: 7.984 kB / 0.592 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.161, allocations: 75.39 kB / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.161, allocations: 0 / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003294/0.1613, allocations: 145.6 kB / 0.5922 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.1614, allocations: 106.8 kB / 0.5923 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.1616, allocations: 266.9 kB / 0.5926 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1617, allocations: 25.7 kB / 0.5926 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.1617, allocations: 120 kB / 0.5927 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.1618, allocations: 19.75 kB / 0.5928 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.1618, allocations: 0 / 0.5928 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.1619, allocations: 330.8 kB / 0.5931 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.603e-05/0.1619, allocations: 27.98 kB / 0.5931 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.173e-05/0.162, allocations: 68.22 kB / 0.5932 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.043e-05/0.1621, allocations: 40.05 kB / 0.5932 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1621, allocations: 0 / 0.5932 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002061/0.1623, allocations: 117.4 kB / 0.5933 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1624, allocations: 4 kB / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1624, allocations: 0 / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.1624, allocations: 0 / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.811e-05/0.1625, allocations: 15.98 kB / 0.5933 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1625, allocations: 0 / 0.5933 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.697e-05/0.1626, allocations: 15.92 kB / 0.5933 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1626, allocations: 4 kB / 0.5934 GB, free: 12.55 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,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.0001168/0.1627, allocations: 146.5 kB / 0.5935 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.1627, allocations: 15.8 kB / 0.5935 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.896e-05/0.1628, allocations: 17.41 kB / 0.5935 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.1628, allocations: 4 kB / 0.5935 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1628, allocations: 0 / 0.5935 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1628, allocations: 0 / 0.5935 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.163, allocations: 229.4 kB / 0.5937 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.163, allocations: 4 kB / 0.5938 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/0.1631, allocations: 7.938 kB / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1631, allocations: 4 kB / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1631, allocations: 192 / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1631, allocations: 0 / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1631, allocations: 3.938 kB / 0.5938 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002223/0.1633, allocations: 144.8 kB / 0.5939 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.1634, allocations: 96.91 kB / 0.594 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.1634, allocations: 8 kB / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.068e-05/0.1635, allocations: 0 / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.1635, allocations: 11.98 kB / 0.594 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.1635, allocations: 4 kB / 0.594 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000162/0.1637, allocations: 196.6 kB / 0.5942 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.333e-06/0.1637, allocations: 0 / 0.5942 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002609/0.164, allocations: 35.94 kB / 0.5942 GB, free: 11.54 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 (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.001272/0.1653, allocations: 1.004 MB / 0.5952 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.1655, allocations: 71.89 kB / 0.5953 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1655, allocations: 0 / 0.5953 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.607e-05/0.1656, allocations: 39.97 kB / 0.5953 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.1659, allocations: 34.42 kB / 0.5954 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.1673, allocations: 0.9752 MB / 0.5963 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.1675, allocations: 0.7204 MB / 0.597 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.918e-05/0.1676, allocations: 33.05 kB / 0.597 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.472e-05/0.1677, allocations: 47.42 kB / 0.5971 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1677, allocations: 0 / 0.5971 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01426/0.182, allocations: 4.132 MB / 0.6011 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.1822, allocations: 221.9 kB / 0.6013 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/1.985, allocations: 0 / 0.6013 GB, free: 4.461 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/linux/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) Environment - environmentSimulation: