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.001884/0.001884, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002044/0.002044, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2259/0.2259, allocations: 15.31 MB / 305.3 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 59.89 kB / 369.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 53.62 MB / 423.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004838/0.1133, allocations: 3.453 MB / 426.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00725/0.1206, allocations: 6.267 MB / 433 MB, free: 5.031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004687/0.1211, allocations: 11.88 kB / 433 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005689/0.1217, allocations: 139.1 kB / 433.1 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008524/0.1226, allocations: 226.6 kB / 433.3 MB, free: 4.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002521/0.1252, allocations: 0.835 MB / 434.2 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008482/0.1261, allocations: 498.5 kB / 434.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.1264, allocations: 144.5 kB / 434.8 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.1267, allocations: 215.3 kB / 435 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.1271, allocations: 239.1 kB / 435.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.939e-05/0.1272, allocations: 16 kB / 435.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1289, allocations: 0.5497 MB / 435.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1291, allocations: 75.73 kB / 435.9 MB, free: 2.105 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002366/0.1293, allocations: 175 kB / 436.1 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002294/0.1316, allocations: 0.9419 MB / 437 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1317, allocations: 0 / 437 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1317, allocations: 0 / 437 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.1317, allocations: 3.938 kB / 437 MB, free: 0.9844 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.001291/0.133, allocations: 0.7517 MB / 437.8 MB, free: 188 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1331, allocations: 8.031 kB / 437.8 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006075/0.1337, allocations: 112.2 kB / 437.9 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2239/0.3576, allocations: 349.8 kB / 438.2 MB, free: 53.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.3576, allocations: 15.91 kB / 438.2 MB, free: 53.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.3577, allocations: 25.28 kB / 438.3 MB, free: 53.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005824/0.3583, allocations: 385.5 kB / 438.6 MB, free: 53.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3583, allocations: 0.5312 kB / 438.6 MB, free: 53.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.3584, allocations: 7.562 kB / 438.6 MB, free: 53.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3584, allocations: 4.281 kB / 438.6 MB, free: 53.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006988/0.3591, allocations: 0.5539 MB / 439.2 MB, free: 53.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3607, allocations: 1.402 MB / 440.6 MB, free: 52.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.361, allocations: 169.5 kB / 440.8 MB, free: 52.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.3612, allocations: 93.53 kB / 440.9 MB, free: 52.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001889/0.3631, allocations: 1.91 MB / 442.8 MB, free: 51.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3631, allocations: 31.06 kB / 442.8 MB, free: 51.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.023e-06/0.3631, allocations: 4.344 kB / 442.8 MB, free: 51.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004401/0.3636, allocations: 222.1 kB / 443 MB, free: 51.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3636, allocations: 51.41 kB / 443.1 MB, free: 51.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.364, allocations: 371 kB / 443.4 MB, free: 51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.364, allocations: 32.48 kB / 443.5 MB, free: 50.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3641, allocations: 227.5 kB / 443.7 MB, free: 50.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.3642, allocations: 46.91 kB / 443.7 MB, free: 50.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.56e-05/0.3643, allocations: 72.59 kB / 443.8 MB, free: 50.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.913e-05/0.3643, allocations: 345.6 kB / 444.1 MB, free: 50.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3644, allocations: 60.67 kB / 444.2 MB, free: 50.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3646, allocations: 242.4 kB / 444.4 MB, free: 50.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.3649, allocations: 347.6 kB / 444.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3649, allocations: 3.531 kB / 444.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004626/0.3654, allocations: 351.3 kB / 445.1 MB, free: 49.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3654, allocations: 10.81 kB / 445.1 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3655, allocations: 5.812 kB / 445.1 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.3655, allocations: 11.41 kB / 445.2 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.3657, allocations: 73.92 kB / 445.2 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.3657, allocations: 17.98 kB / 445.2 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.3659, allocations: 43.69 kB / 445.3 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.366, allocations: 24.97 kB / 445.3 MB, free: 49.95 MB / 366.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.000141/0.3661, allocations: 160.8 kB / 445.5 MB, free: 49.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.555e-05/0.3662, allocations: 34.81 kB / 445.5 MB, free: 49.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.3667, allocations: 275 kB / 445.8 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3667, allocations: 0 / 445.8 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3667, allocations: 0.5625 kB / 445.8 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3667, allocations: 0 / 445.8 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005755/0.3673, allocations: 0.6332 MB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3673, allocations: 3.156 kB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.046e-05/0.3674, allocations: 15.08 kB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3674, allocations: 1.875 kB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3674, allocations: 4.453 kB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3674, allocations: 6.031 kB / 446.4 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3674, allocations: 4.75 kB / 446.4 MB, free: 49.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.3676, allocations: 176.4 kB / 446.6 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.562e-05/0.3677, allocations: 116.5 kB / 446.7 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.3677, allocations: 4.438 kB / 446.7 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.3678, allocations: 4.625 kB / 446.7 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.3679, allocations: 13.11 kB / 446.7 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.3679, allocations: 5.125 kB / 446.8 MB, free: 49.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002754/0.3681, allocations: 314.8 kB / 447.1 MB, free: 48.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3682, allocations: 3.188 kB / 447.1 MB, free: 48.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005225/0.3687, allocations: 166.8 kB / 447.2 MB, free: 48.92 MB / 366.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.000536/0.3692, allocations: 307.1 kB / 447.5 MB, free: 48.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.3695, allocations: 158.4 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3695, allocations: 2.969 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.879e-05/0.3696, allocations: 31.38 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.3701, allocations: 94.69 kB / 447.8 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008061/0.371, allocations: 0.6302 MB / 448.4 MB, free: 48.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3712, allocations: 0.7711 MB / 449.2 MB, free: 47.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003418/0.3715, allocations: 102.3 kB / 449.3 MB, free: 47.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.3716, allocations: 45.02 kB / 449.4 MB, free: 47.67 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3716, allocations: 3 kB / 449.4 MB, free: 47.67 MB / 366.1 MB Notification: Performance of Templates: time 0.009601/0.3813, allocations: 6.02 MB / 455.4 MB, free: 47.25 MB / 366.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)