Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001087, allocations: 116.5 kB / 16.37 MB, free: 6.012 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.001022/0.001022, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08204/0.08204, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 61.2 kB / 371.7 MB, free: 50.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 53.62 MB / 425.4 MB, free: 13.32 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.03176/0.1452, allocations: 22.79 MB / 448.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.1567, allocations: 9.179 MB / 457.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005012/0.1572, allocations: 7.938 kB / 457.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007495/0.158, allocations: 230.4 kB / 457.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009857/0.159, allocations: 341.2 kB / 457.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004019/0.163, allocations: 1.409 MB / 459.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009142/0.164, allocations: 0.6658 MB / 460 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.1643, allocations: 233.4 kB / 460.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.1647, allocations: 319.2 kB / 460.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004945/0.1652, allocations: 338.8 kB / 460.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.1653, allocations: 36 kB / 460.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.1677, allocations: 0.8268 MB / 461.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.1679, allocations: 115.6 kB / 461.8 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.1682, allocations: 266.7 kB / 462.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002301/0.1705, allocations: 1.487 MB / 463.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1705, allocations: 3.938 kB / 463.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1705, allocations: 4 kB / 463.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1705, allocations: 4 kB / 463.6 MB, free: 7.164 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001339/0.1719, allocations: 0.9307 MB / 464.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1719, allocations: 8.031 kB / 464.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007282/0.1727, allocations: 163.9 kB / 464.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.1733, allocations: 453.9 kB / 465.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.1734, allocations: 25.03 kB / 465.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/0.1734, allocations: 32.12 kB / 465.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.1742, allocations: 0.5338 MB / 465.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1742, allocations: 3.984 kB / 465.7 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.546e-05/0.1743, allocations: 12 kB / 465.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1743, allocations: 8 kB / 465.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.1754, allocations: 0.8102 MB / 466.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/0.1778, allocations: 1.881 MB / 468.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.1782, allocations: 222.5 kB / 468.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.1785, allocations: 132.8 kB / 468.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003202/0.1817, allocations: 2.702 MB / 471.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.1817, allocations: 34.55 kB / 471.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.1817, allocations: 4 kB / 471.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005734/0.1823, allocations: 288.4 kB / 471.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.1824, allocations: 59.34 kB / 471.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/0.1829, allocations: 482.6 kB / 472.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.1829, allocations: 29.7 kB / 472.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.1831, allocations: 299.2 kB / 472.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.201e-05/0.1832, allocations: 55.25 kB / 472.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1833, allocations: 101.9 kB / 472.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1835, allocations: 358.7 kB / 473.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.1837, allocations: 88.81 kB / 473.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003824/0.1841, allocations: 361.1 kB / 473.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.1847, allocations: 0.4886 MB / 474.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1847, allocations: 0 / 474.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000758/0.1854, allocations: 493.1 kB / 474.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1855, allocations: 16.19 kB / 474.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.1855, allocations: 12 kB / 474.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.1855, allocations: 12 kB / 474.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.1859, allocations: 107.8 kB / 474.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.1859, allocations: 19.94 kB / 474.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.1862, allocations: 63.36 kB / 474.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.091e-05/0.1863, allocations: 39.94 kB / 474.8 MB, free: 11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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.0001954/0.1865, allocations: 173.6 kB / 475 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.1866, allocations: 55.38 kB / 475.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007533/0.1873, allocations: 399.7 kB / 475.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1874, allocations: 0 / 475.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.1874, allocations: 0 / 475.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1874, allocations: 4 kB / 475.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000956/0.1883, allocations: 0.7171 MB / 476.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1884, allocations: 4 kB / 476.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.984e-05/0.1884, allocations: 11.94 kB / 476.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1885, allocations: 4 kB / 476.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1885, allocations: 0 / 476.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.1885, allocations: 11.92 kB / 476.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1885, allocations: 0 / 476.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.1888, allocations: 197 kB / 476.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.189, allocations: 132.4 kB / 476.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.158e-05/0.1891, allocations: 11.88 kB / 476.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.1892, allocations: 4 kB / 476.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.1893, allocations: 8 kB / 476.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.1893, allocations: 7.984 kB / 476.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005381/0.1898, allocations: 410.8 kB / 476.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1898, allocations: 0 / 476.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008996/0.1907, allocations: 247.8 kB / 477.2 MB, free: 8.457 MB / 350.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.0008177/0.1916, allocations: 402.5 kB / 477.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004667/0.192, allocations: 233.6 kB / 477.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1921, allocations: 0 / 477.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.722e-05/0.1921, allocations: 36.48 kB / 477.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.1928, allocations: 116.3 kB / 478 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.194, allocations: 0.6772 MB / 478.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.1945, allocations: 0.8152 MB / 479.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003358/0.1948, allocations: 140 kB / 479.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.1949, allocations: 55.41 kB / 479.6 MB, free: 5.922 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.195, allocations: 4 kB / 479.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of Templates: time 0.01406/0.209, allocations: 8.513 MB / 488.2 MB, free: 13.45 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)