Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004928/0.004929, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001258/0.001258, allocations: 192.2 kB / 16.67 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2105/0.2105, allocations: 38.01 MB / 307.9 MB, free: 5.984 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 71.91 kB / 433 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1586, allocations: 56.47 MB / 489.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003986/0.1626, allocations: 2.26 MB / 491.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002585/0.1652, allocations: 1.455 MB / 493.2 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1654, allocations: 7.938 kB / 493.2 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004866/0.1659, allocations: 143.3 kB / 493.3 MB, free: 1.996 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004844/0.1664, allocations: 234.9 kB / 493.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.1679, allocations: 0.6004 MB / 494.1 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.1686, allocations: 0.522 MB / 494.7 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.1688, allocations: 88.89 kB / 494.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.1691, allocations: 223.1 kB / 495 MB, free: 336 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.1694, allocations: 219 kB / 495.2 MB, free: 116 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.1695, allocations: 24 kB / 495.2 MB, free: 92 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003857/0.1699, allocations: 167.8 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.1701, allocations: 131.6 kB / 495.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002108/0.1703, allocations: 198.7 kB / 495.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007518/0.171, allocations: 0.5762 MB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.171, allocations: 0 / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1711, allocations: 0 / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.1711, allocations: 0 / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001388/0.1725, allocations: 0.8865 MB / 497.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.1725, allocations: 11.89 kB / 497.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.1727, allocations: 64.27 kB / 497.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/0.1734, allocations: 452.2 kB / 497.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.1734, allocations: 12.61 kB / 497.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.1735, allocations: 20.06 kB / 497.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.174, allocations: 261.3 kB / 497.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.174, allocations: 4 kB / 498 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.174, allocations: 4 kB / 498 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.174, allocations: 4 kB / 498 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.1743, allocations: 115.8 kB / 498.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.1754, allocations: 0.8717 MB / 498.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006743/0.1761, allocations: 294.5 kB / 499.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.1764, allocations: 107.4 kB / 499.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.1764, allocations: 12.14 kB / 499.3 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.1768, allocations: 214.6 kB / 499.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.472e-06/0.1768, allocations: 0 / 499.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009376/0.1778, allocations: 409 kB / 500 MB, free: 11.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002369/0.178, allocations: 346.1 kB / 0.4886 GB, free: 10.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007563/0.1788, allocations: 0.6239 MB / 0.4892 GB, free: 9.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.1788, allocations: 37.7 kB / 0.4892 GB, free: 9.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.179, allocations: 228.5 kB / 0.4894 GB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/0.1791, allocations: 67.16 kB / 0.4895 GB, free: 9.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-05/0.1792, allocations: 61.69 kB / 0.4896 GB, free: 9.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1794, allocations: 362.8 kB / 0.4899 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.1796, allocations: 87.94 kB / 0.49 GB, free: 9.121 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.1799, allocations: 244.9 kB / 0.4902 GB, free: 8.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.1804, allocations: 235.3 kB / 0.4904 GB, free: 8.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1804, allocations: 3.938 kB / 0.4904 GB, free: 8.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005936/0.181, allocations: 316.8 kB / 0.4908 GB, free: 8.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.181, allocations: 4 kB / 0.4908 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.181, allocations: 4 kB / 0.4908 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.1811, allocations: 11.92 kB / 0.4908 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.1813, allocations: 51.91 kB / 0.4908 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1814, allocations: 7.938 kB / 0.4908 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.1816, allocations: 31.83 kB / 0.4909 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.1816, allocations: 16.11 kB / 0.4909 GB, free: 8.121 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * 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.0002469/0.1818, allocations: 225.6 kB / 0.4911 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.784e-05/0.1819, allocations: 51.34 kB / 0.4911 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.89e-05/0.182, allocations: 51.91 kB / 0.4912 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.1821, allocations: 7.938 kB / 0.4912 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.1821, allocations: 4 kB / 0.4912 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1821, allocations: 3.984 kB / 0.4912 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.1825, allocations: 397.6 kB / 0.4916 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1825, allocations: 8 kB / 0.4916 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.1827, allocations: 23.98 kB / 0.4916 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1827, allocations: 0 / 0.4916 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.1827, allocations: 15.98 kB / 0.4916 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1827, allocations: 3.938 kB / 0.4916 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1827, allocations: 3.938 kB / 0.4916 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.1834, allocations: 362.8 kB / 0.492 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.1835, allocations: 124.5 kB / 0.4921 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.1836, allocations: 15.98 kB / 0.4921 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1838, allocations: 19.92 kB / 0.4921 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.1839, allocations: 31.97 kB / 0.4922 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/0.1839, allocations: 15.98 kB / 0.4922 GB, free: 6.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005069/0.1844, allocations: 466.8 kB / 0.4926 GB, free: 6.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1845, allocations: 11.88 kB / 0.4926 GB, free: 6.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.1849, allocations: 99.84 kB / 0.4927 GB, free: 6.105 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001134/0.186, allocations: 454.7 kB / 0.4932 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.1866, allocations: 223.8 kB / 0.4934 GB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.1866, allocations: 256 / 0.4934 GB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.187, allocations: 171.8 kB / 0.4935 GB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.1877, allocations: 158.4 kB / 0.4937 GB, free: 5.156 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.1889, allocations: 0.754 MB / 0.4944 GB, free: 4.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.1894, allocations: 0.8466 MB / 0.4953 GB, free: 3.496 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002305/0.1896, allocations: 83.23 kB / 0.4953 GB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1898, allocations: 55.41 kB / 0.4954 GB, free: 3.355 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1898, allocations: 0 / 0.4954 GB, free: 3.355 MB / 382.1 MB Notification: Performance of Templates: time 0.01416/0.2039, allocations: 7.597 MB / 0.5028 GB, free: 11.76 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.pipe 2>&1)