Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.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: translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 110.1 kB / 16.41 MB, free: 6.477 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.001625/0.001625, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08765/0.08765, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 63.89 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1096, allocations: 53.61 MB / 479.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004751/0.1144, allocations: 2.994 MB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007426/0.1219, allocations: 6.261 MB / 488.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.1223, allocations: 7.938 kB / 488.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005916/0.1229, allocations: 154.8 kB / 488.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009273/0.1239, allocations: 246.1 kB / 489.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.1267, allocations: 0.951 MB / 490.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008665/0.1276, allocations: 482.7 kB / 490.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003721/0.128, allocations: 176.4 kB / 490.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003459/0.1283, allocations: 223.3 kB / 490.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.1288, allocations: 251.1 kB / 491.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.1289, allocations: 24 kB / 491.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00188/0.1308, allocations: 0.5538 MB / 491.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.131, allocations: 79.7 kB / 491.8 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.1312, allocations: 179.1 kB / 492 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.1337, allocations: 1.016 MB / 493 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1337, allocations: 7.938 kB / 493 MB, free: 8.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1337, allocations: 0 / 493 MB, free: 8.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.1337, allocations: 4 kB / 493 MB, free: 8.184 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00138/0.1351, allocations: 0.7555 MB / 493.8 MB, free: 7.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1352, allocations: 8.031 kB / 493.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006241/0.1358, allocations: 108.2 kB / 493.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.1365, allocations: 375.9 kB / 494.3 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.1365, allocations: 12.81 kB / 494.3 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.296e-05/0.1366, allocations: 32.06 kB / 494.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006151/0.1372, allocations: 385.8 kB / 494.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1372, allocations: 0 / 494.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.1372, allocations: 11.98 kB / 494.7 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1373, allocations: 4 kB / 494.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007983/0.1381, allocations: 0.5437 MB / 495.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.1399, allocations: 1.411 MB / 496.7 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.1403, allocations: 174.4 kB / 496.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1405, allocations: 97.7 kB / 496.9 MB, free: 4.094 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002197/0.1427, allocations: 1.896 MB / 498.8 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.1427, allocations: 42.55 kB / 498.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.1427, allocations: 0 / 498.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004662/0.1432, allocations: 209.2 kB / 499.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.1432, allocations: 51.41 kB / 499.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.1436, allocations: 377.5 kB / 499.5 MB, free: 1.246 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.1437, allocations: 29.7 kB / 499.5 MB, free: 1.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.1438, allocations: 227.5 kB / 499.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.1439, allocations: 55.23 kB / 499.8 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.144, allocations: 69.59 kB / 499.9 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1441, allocations: 342.8 kB / 0.4885 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.1442, allocations: 63.95 kB / 0.4885 GB, free: 460 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.1445, allocations: 248.8 kB / 0.4888 GB, free: 120 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.1449, allocations: 340.5 kB / 0.4891 GB, free: 15.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1449, allocations: 0 / 0.4891 GB, free: 15.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005744/0.1455, allocations: 349.5 kB / 0.4894 GB, free: 15.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1455, allocations: 12 kB / 0.4894 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.1455, allocations: 7.984 kB / 0.4894 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.1456, allocations: 8 kB / 0.4894 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.1458, allocations: 71.91 kB / 0.4895 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.1458, allocations: 15.92 kB / 0.4895 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.146, allocations: 47.53 kB / 0.4896 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.1461, allocations: 20 kB / 0.4896 GB, free: 15.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001633/0.1462, allocations: 157.6 kB / 0.4897 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.507e-05/0.1463, allocations: 35.62 kB / 0.4898 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000506/0.1468, allocations: 279.1 kB / 0.49 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1468, allocations: 0 / 0.49 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1469, allocations: 0 / 0.49 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1469, allocations: 3.938 kB / 0.4901 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006747/0.1475, allocations: 0.6351 MB / 0.4907 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1476, allocations: 0 / 0.4907 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.764e-05/0.1476, allocations: 15.94 kB / 0.4907 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1476, allocations: 0 / 0.4907 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1477, allocations: 8 kB / 0.4907 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.1477, allocations: 4.25 kB / 0.4907 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1477, allocations: 4 kB / 0.4907 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.1479, allocations: 176.8 kB / 0.4909 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.148, allocations: 124.6 kB / 0.491 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.488e-05/0.1481, allocations: 4 kB / 0.491 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.774e-05/0.1482, allocations: 4 kB / 0.491 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.243e-05/0.1482, allocations: 8 kB / 0.491 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.1482, allocations: 0 / 0.491 GB, free: 13.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.1486, allocations: 315.1 kB / 0.4913 GB, free: 13.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.684e-06/0.1486, allocations: 0 / 0.4913 GB, free: 13.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006061/0.1492, allocations: 171.8 kB / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006204/0.1498, allocations: 310.7 kB / 0.4918 GB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.1501, allocations: 169.2 kB / 0.4919 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1501, allocations: 0 / 0.4919 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.682e-05/0.1502, allocations: 31.92 kB / 0.492 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.1508, allocations: 97.53 kB / 0.4921 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008917/0.1517, allocations: 0.5637 MB / 0.4926 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.152, allocations: 0.7755 MB / 0.4934 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.1521, allocations: 63.39 kB / 0.4934 GB, free: 11 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1521, allocations: 0 / 0.4934 GB, free: 11 MB / 382.1 MB Notification: Performance of Templates: time 0.009584/0.1617, allocations: 5.764 MB / 0.499 GB, free: 5.273 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)