Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_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.001256/0.001262, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001679/0.001679, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.362/1.362, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7026/0.7026, allocations: 132.2 MB / 422.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 64.16 kB / 0.5014 GB, free: 8.992 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1303, allocations: 80.2 MB / 0.5797 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002556/0.1329, allocations: 1.813 MB / 0.5814 GB, free: 7.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1343, allocations: 1.088 MB / 0.5825 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.405e-05/0.1344, allocations: 4 kB / 0.5825 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.1347, allocations: 55.8 kB / 0.5826 GB, free: 6.023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.1349, allocations: 71.73 kB / 0.5826 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.1354, allocations: 202.2 kB / 0.5828 GB, free: 5.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1355, allocations: 143.7 kB / 0.583 GB, free: 5.617 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.194e-05/0.1356, allocations: 25.09 kB / 0.583 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.384e-05/0.1357, allocations: 71.64 kB / 0.5831 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.262e-05/0.1358, allocations: 63.7 kB / 0.5831 GB, free: 5.461 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.1358, allocations: 8 kB / 0.5831 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.136, allocations: 71.89 kB / 0.5832 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.33e-05/0.136, allocations: 35.91 kB / 0.5832 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.1361, allocations: 63.59 kB / 0.5833 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.1363, allocations: 203.7 kB / 0.5835 GB, free: 5.086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1363, allocations: 0 / 0.5835 GB, free: 5.086 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1363, allocations: 0 / 0.5835 GB, free: 5.086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1363, allocations: 0 / 0.5835 GB, free: 5.086 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.0005223/0.1369, allocations: 488.2 kB / 0.5839 GB, free: 4.555 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.1369, allocations: 12.03 kB / 0.584 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.1369, allocations: 38.75 kB / 0.584 GB, free: 4.496 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.185e-05/0.137, allocations: 12.75 kB / 0.584 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1373, allocations: 253.5 kB / 0.5842 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1373, allocations: 8.375 kB / 0.5843 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.1373, allocations: 15.88 kB / 0.5843 GB, free: 4.176 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.1375, allocations: 88.17 kB / 0.5844 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1375, allocations: 8 kB / 0.5844 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1375, allocations: 0 / 0.5844 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.1376, allocations: 0 / 0.5844 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.1377, allocations: 39.97 kB / 0.5844 GB, free: 4.027 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.1381, allocations: 356.6 kB / 0.5847 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.1383, allocations: 82.67 kB / 0.5848 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.461e-05/0.1384, allocations: 32.94 kB / 0.5849 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.1384, allocations: 3.938 kB / 0.5849 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.1386, allocations: 87.34 kB / 0.5849 GB, free: 3.402 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.1386, allocations: 4 kB / 0.5849 GB, free: 3.398 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003329/0.139, allocations: 133.5 kB / 0.5851 GB, free: 3.262 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.139, allocations: 106.8 kB / 0.5852 GB, free: 3.133 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.1393, allocations: 263.1 kB / 0.5854 GB, free: 2.867 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1393, allocations: 29.64 kB / 0.5854 GB, free: 2.832 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.1394, allocations: 124 kB / 0.5856 GB, free: 2.707 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.1394, allocations: 19.8 kB / 0.5856 GB, free: 2.688 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.1395, allocations: 25.7 kB / 0.5856 GB, free: 2.656 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1396, allocations: 330.8 kB / 0.5859 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.1397, allocations: 27.92 kB / 0.586 GB, free: 2.297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.819e-05/0.1398, allocations: 72.27 kB / 0.586 GB, free: 2.211 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.1399, allocations: 69.64 kB / 0.5861 GB, free: 2.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1399, allocations: 0 / 0.5861 GB, free: 2.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002005/0.1401, allocations: 109.5 kB / 0.5862 GB, free: 2.023 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.1401, allocations: 4 kB / 0.5862 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1401, allocations: 4.031 kB / 0.5862 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1402, allocations: 4 kB / 0.5862 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.687e-05/0.1402, allocations: 15.92 kB / 0.5862 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.1403, allocations: 4 kB / 0.5862 GB, free: 1.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.296e-05/0.1403, allocations: 11.83 kB / 0.5862 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.1403, allocations: 7.984 kB / 0.5862 GB, free: 1.973 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 0.0001209/0.1405, allocations: 151.3 kB / 0.5864 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.1405, allocations: 19.8 kB / 0.5864 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.1406, allocations: 17.41 kB / 0.5864 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.1406, allocations: 4 kB / 0.5864 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1406, allocations: 0 / 0.5864 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1406, allocations: 7.922 kB / 0.5864 GB, free: 1.766 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.1408, allocations: 221.6 kB / 0.5866 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1408, allocations: 0 / 0.5866 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.956e-05/0.1408, allocations: 12 kB / 0.5867 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1408, allocations: 0 / 0.5867 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.1408, allocations: 0 / 0.5867 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1409, allocations: 0 / 0.5867 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1409, allocations: 0 / 0.5867 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.1411, allocations: 148.8 kB / 0.5868 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.1412, allocations: 92.92 kB / 0.5869 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.1412, allocations: 7.984 kB / 0.5869 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.967e-05/0.1412, allocations: 0 / 0.5869 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.1413, allocations: 19.91 kB / 0.5869 GB, free: 1.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.1413, allocations: 4 kB / 0.5869 GB, free: 1.184 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.1415, allocations: 196.4 kB / 0.5871 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1415, allocations: 4 kB / 0.5871 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002317/0.1418, allocations: 35.98 kB / 0.5871 GB, free: 0.9531 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.001461/0.1432, allocations: 0.9995 MB / 0.5881 GB, free: 116 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002144/0.1434, allocations: 75.89 kB / 0.5882 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1435, allocations: 0 / 0.5882 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.506e-05/0.1435, allocations: 35.98 kB / 0.5882 GB, free: 4 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.1439, allocations: 44.48 kB / 0.5883 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.146, allocations: 1.976 MB / 0.5902 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.1463, allocations: 0.7278 MB / 0.5909 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.81e-05/0.1464, allocations: 25.38 kB / 0.5909 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.812e-05/0.1465, allocations: 43.42 kB / 0.591 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1465, allocations: 4 kB / 0.591 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/0.2565, allocations: 4.483 MB / 0.5954 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00028/0.2568, allocations: 229.9 kB / 0.5956 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.155, allocations: 2.625 kB / 0.5956 GB, free: 8.48 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)