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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08194/0.08195, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 194 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 264 MB, free: 5.031 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 108.2 kB / 318.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 54.12 kB / 382.7 MB, free: 48.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1152, allocations: 53.61 MB / 436.3 MB, free: 1.066 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004863/0.1202, allocations: 3.463 MB / 439.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007493/0.1277, allocations: 6.278 MB / 446.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005269/0.1283, allocations: 11.88 kB / 446.1 MB, free: 7.262 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005854/0.1289, allocations: 131.2 kB / 446.2 MB, free: 7.133 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008247/0.1297, allocations: 234.6 kB / 446.4 MB, free: 6.902 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.1321, allocations: 0.835 MB / 447.3 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000819/0.1329, allocations: 498.5 kB / 447.8 MB, free: 5.574 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.1333, allocations: 148.5 kB / 447.9 MB, free: 5.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003163/0.1336, allocations: 215.3 kB / 448.1 MB, free: 5.219 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004623/0.1341, allocations: 243.1 kB / 448.4 MB, free: 4.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/0.1342, allocations: 12 kB / 448.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.1359, allocations: 0.5381 MB / 448.9 MB, free: 4.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.136, allocations: 79.62 kB / 449 MB, free: 4.352 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.1363, allocations: 183.1 kB / 449.2 MB, free: 4.172 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.1382, allocations: 0.9418 MB / 450.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.1382, allocations: 4 kB / 450.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1382, allocations: 0 / 450.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.1382, allocations: 0 / 450.1 MB, free: 3.223 MB / 314.7 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.00136/0.1396, allocations: 0.7439 MB / 450.8 MB, free: 2.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.1397, allocations: 12.88 kB / 450.9 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005793/0.1402, allocations: 104.4 kB / 451 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.1409, allocations: 371.8 kB / 451.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1409, allocations: 12.81 kB / 451.3 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.191e-05/0.141, allocations: 28.12 kB / 451.4 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.1415, allocations: 381.8 kB / 451.7 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1416, allocations: 0 / 451.7 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.1416, allocations: 12 kB / 451.8 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1416, allocations: 4 kB / 451.8 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007817/0.1424, allocations: 0.5437 MB / 452.3 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.1443, allocations: 1.399 MB / 453.7 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.1447, allocations: 174.4 kB / 453.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.1449, allocations: 100.8 kB / 454 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002299/0.1472, allocations: 1.895 MB / 455.9 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1472, allocations: 42.56 kB / 455.9 MB, free: 12.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.894e-06/0.1472, allocations: 0 / 455.9 MB, free: 12.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005078/0.1477, allocations: 221.1 kB / 456.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.1478, allocations: 55.41 kB / 456.2 MB, free: 12.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.1482, allocations: 369.5 kB / 456.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1482, allocations: 25.7 kB / 456.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1484, allocations: 227.5 kB / 456.8 MB, free: 12.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/0.1484, allocations: 51.3 kB / 456.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-05/0.1485, allocations: 81.45 kB / 456.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1487, allocations: 346.8 kB / 457.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1488, allocations: 59.97 kB / 457.3 MB, free: 11.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.149, allocations: 237.4 kB / 457.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004038/0.1494, allocations: 348.5 kB / 457.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1494, allocations: 4 kB / 457.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005633/0.15, allocations: 348.5 kB / 458.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.15, allocations: 8.875 kB / 458.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1501, allocations: 4 kB / 458.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.1501, allocations: 19.94 kB / 458.3 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1503, allocations: 75.89 kB / 458.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.1503, allocations: 15.94 kB / 458.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.1505, allocations: 35.62 kB / 458.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.1506, allocations: 27.98 kB / 458.4 MB, free: 10.21 MB / 330.7 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.0001467/0.1507, allocations: 161.6 kB / 458.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.121e-05/0.1508, allocations: 31.53 kB / 458.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005432/0.1514, allocations: 286.4 kB / 458.9 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1514, allocations: 0 / 458.9 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1514, allocations: 0 / 458.9 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1514, allocations: 7.922 kB / 458.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006799/0.1521, allocations: 0.6312 MB / 459.5 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1521, allocations: 0 / 459.5 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.88e-05/0.1522, allocations: 12 kB / 459.5 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1522, allocations: 0 / 459.5 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1522, allocations: 4 kB / 459.5 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1522, allocations: 0 / 459.5 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1522, allocations: 7.984 kB / 459.5 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.1528, allocations: 0.8071 MB / 460.3 MB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1529, allocations: 124.6 kB / 460.5 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.059e-05/0.153, allocations: 8 kB / 460.5 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.201e-05/0.1531, allocations: 3.938 kB / 460.5 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.417e-05/0.1531, allocations: 11.92 kB / 460.5 MB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.1532, allocations: 4 kB / 460.5 MB, free: 7.918 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003267/0.1535, allocations: 315.1 kB / 460.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1535, allocations: 0 / 460.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006788/0.1542, allocations: 167.9 kB / 461 MB, free: 7.449 MB / 330.7 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.0006769/0.1549, allocations: 311.4 kB / 461.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.1552, allocations: 155.7 kB / 461.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1552, allocations: 1.75 kB / 461.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.817e-05/0.1552, allocations: 31.92 kB / 461.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005618/0.1558, allocations: 93.31 kB / 461.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.1569, allocations: 0.7386 MB / 462.3 MB, free: 6.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.1572, allocations: 0.7719 MB / 463.1 MB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003305/0.1575, allocations: 102.6 kB / 463.2 MB, free: 5.172 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.512e-05/0.1576, allocations: 47.42 kB / 463.2 MB, free: 5.125 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1576, allocations: 0 / 463.2 MB, free: 5.125 MB / 330.7 MB Notification: Performance of Templates: time 0.01099/0.1686, allocations: 6.104 MB / 469.3 MB, free: 15.06 MB / 346.7 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)