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.001197/0.001197, allocations: 104.5 kB / 16.36 MB, free: 5.875 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.001306/0.001306, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08184/0.08184, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.59 kB / 371.7 MB, free: 50.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1188, allocations: 53.61 MB / 425.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003626/0.1225, allocations: 2.985 MB / 428.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005211/0.1277, allocations: 6.273 MB / 434.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003191/0.1281, allocations: 7.938 kB / 434.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004865/0.1286, allocations: 158.9 kB / 434.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006285/0.1293, allocations: 246.1 kB / 435 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.1314, allocations: 0.947 MB / 436 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.132, allocations: 486.7 kB / 436.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.1322, allocations: 164.4 kB / 436.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.1324, allocations: 235.3 kB / 436.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.1327, allocations: 251.1 kB / 437.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.1327, allocations: 24 kB / 437.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.1342, allocations: 0.5461 MB / 437.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.401e-05/0.1343, allocations: 83.7 kB / 437.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.1344, allocations: 183.1 kB / 437.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.1358, allocations: 1.016 MB / 438.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1358, allocations: 0 / 438.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1358, allocations: 0 / 438.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1358, allocations: 0 / 438.9 MB, free: 15.66 MB / 318.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.001048/0.1369, allocations: 0.7478 MB / 439.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.1369, allocations: 8.031 kB / 439.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005302/0.1375, allocations: 112.4 kB / 439.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.138, allocations: 371.9 kB / 440.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.1381, allocations: 20.75 kB / 440.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.1381, allocations: 24.12 kB / 440.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.1387, allocations: 381.9 kB / 440.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1387, allocations: 3.938 kB / 440.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.1388, allocations: 12 kB / 440.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1388, allocations: 4 kB / 440.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007479/0.1395, allocations: 0.5437 MB / 441.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.1413, allocations: 1.411 MB / 442.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.1417, allocations: 158.5 kB / 442.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1419, allocations: 108.8 kB / 442.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002298/0.1442, allocations: 1.884 MB / 444.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.1442, allocations: 46.56 kB / 444.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.186e-06/0.1442, allocations: 3.984 kB / 444.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004638/0.1447, allocations: 221.2 kB / 444.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.1447, allocations: 59.34 kB / 445 MB, free: 9.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.1451, allocations: 373.5 kB / 445.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.1451, allocations: 25.7 kB / 445.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.1453, allocations: 231.4 kB / 445.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.1453, allocations: 47.36 kB / 445.7 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.1455, allocations: 73.47 kB / 445.7 MB, free: 8.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1456, allocations: 354.7 kB / 446.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.1457, allocations: 55.97 kB / 446.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.1459, allocations: 248.8 kB / 446.4 MB, free: 7.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.1463, allocations: 340.5 kB / 446.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.1463, allocations: 4 kB / 446.7 MB, free: 7.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005214/0.1469, allocations: 348.6 kB / 447.1 MB, free: 6.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.1469, allocations: 8 kB / 447.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1469, allocations: 4.875 kB / 447.1 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.1469, allocations: 12 kB / 447.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.1472, allocations: 75.91 kB / 447.2 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.1472, allocations: 15.94 kB / 447.2 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1474, allocations: 47.45 kB / 447.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/0.1474, allocations: 20 kB / 447.2 MB, free: 6.645 MB / 318.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.0001513/0.1476, allocations: 157.7 kB / 447.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.1477, allocations: 31.62 kB / 447.4 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005136/0.1482, allocations: 290.7 kB / 447.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1482, allocations: 0 / 447.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1482, allocations: 0 / 447.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1482, allocations: 3.938 kB / 447.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006487/0.1489, allocations: 0.6274 MB / 448.3 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1489, allocations: 0 / 448.3 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.317e-05/0.149, allocations: 19.92 kB / 448.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.149, allocations: 0 / 448.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.149, allocations: 4 kB / 448.4 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.149, allocations: 0 / 448.4 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.149, allocations: 4 kB / 448.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.1492, allocations: 177 kB / 448.5 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1493, allocations: 116.6 kB / 448.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.1494, allocations: 7.922 kB / 448.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.655e-05/0.1495, allocations: 8 kB / 448.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.1495, allocations: 8 kB / 448.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1495, allocations: 4 kB / 448.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003065/0.1498, allocations: 311.1 kB / 449 MB, free: 4.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1498, allocations: 0 / 449 MB, free: 4.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005821/0.1504, allocations: 171.9 kB / 449.2 MB, free: 4.562 MB / 318.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.0004913/0.1509, allocations: 310.7 kB / 449.5 MB, free: 4.246 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.1512, allocations: 172.3 kB / 449.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1512, allocations: 4 kB / 449.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.375e-05/0.1513, allocations: 27.92 kB / 449.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005032/0.1518, allocations: 92.56 kB / 449.7 MB, free: 3.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008343/0.1526, allocations: 0.5385 MB / 450.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.153, allocations: 0.7717 MB / 451.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002451/0.1532, allocations: 98.36 kB / 451.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.823e-05/0.1533, allocations: 39.42 kB / 451.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1533, allocations: 0 / 451.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of Templates: time 0.01074/0.1641, allocations: 6.171 MB / 457.4 MB, free: 12.32 MB / 334.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)