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.001212/0.001212, allocations: 107.3 kB / 16.36 MB, free: 5.824 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.001139/0.001139, allocations: 189.7 kB / 17.29 MB, free: 5.48 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1142/0.1142, allocations: 15.3 MB / 306.5 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 60.16 kB / 371.7 MB, free: 50.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09243, allocations: 53.61 MB / 425.3 MB, free: 13.25 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.0289/0.1214, allocations: 22.81 MB / 448.2 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00946/0.1308, allocations: 9.175 MB / 457.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004558/0.1313, allocations: 11.94 kB / 457.3 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006225/0.132, allocations: 218.4 kB / 457.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009883/0.133, allocations: 349.2 kB / 457.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00352/0.1365, allocations: 1.405 MB / 459.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008965/0.1374, allocations: 0.6698 MB / 460 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.1377, allocations: 233.4 kB / 460.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.1381, allocations: 319.1 kB / 460.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004277/0.1385, allocations: 338.9 kB / 460.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.834e-05/0.1386, allocations: 36 kB / 460.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.1408, allocations: 0.8268 MB / 461.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.1409, allocations: 123.6 kB / 461.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.1412, allocations: 258.7 kB / 462.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002352/0.1435, allocations: 1.491 MB / 463.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1436, allocations: 0 / 463.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1436, allocations: 0 / 463.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1436, allocations: 0 / 463.6 MB, free: 7.098 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.001213/0.1448, allocations: 0.9424 MB / 464.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1449, allocations: 12.03 kB / 464.5 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007216/0.1456, allocations: 163.9 kB / 464.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/0.1462, allocations: 446 kB / 465.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.1463, allocations: 29.02 kB / 465.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.244e-05/0.1463, allocations: 32.12 kB / 465.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007229/0.1471, allocations: 0.5221 MB / 465.7 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1471, allocations: 3.984 kB / 465.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.1471, allocations: 16 kB / 465.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1471, allocations: 8 kB / 465.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.1482, allocations: 0.8024 MB / 466.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.1506, allocations: 1.889 MB / 468.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.151, allocations: 222.4 kB / 468.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.1512, allocations: 140.7 kB / 468.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003047/0.1543, allocations: 2.702 MB / 471.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.1543, allocations: 34.56 kB / 471.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.1543, allocations: 0 / 471.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005672/0.1549, allocations: 300.2 kB / 471.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.1549, allocations: 55.41 kB / 471.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/0.1554, allocations: 478.7 kB / 472.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.1554, allocations: 33.7 kB / 472.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.1556, allocations: 295.2 kB / 472.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.1556, allocations: 55.27 kB / 472.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.1558, allocations: 101.9 kB / 472.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1559, allocations: 358.7 kB / 473.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.1561, allocations: 88.83 kB / 473.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.1564, allocations: 361.1 kB / 473.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005147/0.1569, allocations: 0.4886 MB / 474.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.1569, allocations: 4 kB / 474.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006961/0.1576, allocations: 493 kB / 474.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1576, allocations: 8 kB / 474.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.1576, allocations: 8 kB / 474.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.1577, allocations: 19.98 kB / 474.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.158, allocations: 107.8 kB / 474.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.217e-05/0.158, allocations: 19.92 kB / 474.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.1583, allocations: 55.38 kB / 474.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.1583, allocations: 44.27 kB / 474.8 MB, free: 10.93 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.000158/0.1585, allocations: 173.7 kB / 475 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-05/0.1586, allocations: 43.44 kB / 475 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006541/0.1593, allocations: 399.8 kB / 475.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1593, allocations: 0 / 475.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1593, allocations: 3.938 kB / 475.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1593, allocations: 3.984 kB / 475.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007469/0.16, allocations: 0.7171 MB / 476.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1601, allocations: 0 / 476.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-05/0.1601, allocations: 23.86 kB / 476.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1601, allocations: 0 / 476.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.1602, allocations: 4 kB / 476.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1602, allocations: 192 / 476.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1602, allocations: 8 kB / 476.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.1604, allocations: 192.9 kB / 476.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1605, allocations: 136.4 kB / 476.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-05/0.1606, allocations: 15.92 kB / 476.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.1607, allocations: 8 kB / 476.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.1608, allocations: 4 kB / 476.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1608, allocations: 0 / 476.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004161/0.1612, allocations: 422.8 kB / 476.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1612, allocations: 0 / 476.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006881/0.1619, allocations: 243.8 kB / 477.2 MB, free: 8.383 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.0005837/0.1625, allocations: 410.5 kB / 477.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003635/0.1629, allocations: 229.9 kB / 477.8 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1629, allocations: 4.188 kB / 477.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.47e-05/0.1629, allocations: 35.92 kB / 477.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.1635, allocations: 115.5 kB / 478 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009298/0.1644, allocations: 0.6733 MB / 478.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1648, allocations: 0.8035 MB / 479.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003295/0.1651, allocations: 144.2 kB / 479.6 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.1652, allocations: 59.42 kB / 479.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1652, allocations: 0 / 479.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of Templates: time 0.01298/0.1782, allocations: 8.524 MB / 488.2 MB, free: 13.37 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)