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.001166/0.001166, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 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: 192.4 kB / 16.53 MB, free: 6.391 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.193/1.193, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1781/0.1781, allocations: 15.31 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.91 kB / 370.3 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09622/0.09735, allocations: 53.6 MB / 423.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003679/0.1011, allocations: 2.977 MB / 426.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005982/0.1071, allocations: 6.261 MB / 433.2 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002881/0.1074, allocations: 7.938 kB / 433.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004508/0.1078, allocations: 150.9 kB / 433.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005746/0.1085, allocations: 258.2 kB / 433.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002525/0.111, allocations: 0.951 MB / 434.5 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005957/0.1116, allocations: 490.6 kB / 435 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.1119, allocations: 164.5 kB / 435.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.1121, allocations: 227.3 kB / 435.4 MB, free: 2.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.1124, allocations: 239.2 kB / 435.6 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.307e-05/0.1124, allocations: 28 kB / 435.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.1137, allocations: 0.5538 MB / 436.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.1139, allocations: 83.69 kB / 436.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.114, allocations: 191 kB / 436.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1153, allocations: 1.008 MB / 437.5 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1153, allocations: 4 kB / 437.5 MB, free: 0.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1153, allocations: 0 / 437.5 MB, free: 0.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1154, allocations: 0 / 437.5 MB, free: 0.707 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.1731/0.2884, allocations: 0.7457 MB / 438.2 MB, free: 53.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.2885, allocations: 12.25 kB / 438.2 MB, free: 53.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.2891, allocations: 109 kB / 438.3 MB, free: 53.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.2895, allocations: 358.5 kB / 438.7 MB, free: 53.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.2895, allocations: 17.44 kB / 438.7 MB, free: 53.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2896, allocations: 23.25 kB / 438.7 MB, free: 53.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.2901, allocations: 381.5 kB / 439.1 MB, free: 53.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2901, allocations: 2.531 kB / 439.1 MB, free: 53.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.2901, allocations: 16.91 kB / 439.1 MB, free: 53.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2901, allocations: 6.859 kB / 439.1 MB, free: 53.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006261/0.2908, allocations: 0.5441 MB / 439.7 MB, free: 53.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.2921, allocations: 1.4 MB / 441.1 MB, free: 52.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.2924, allocations: 172 kB / 441.3 MB, free: 52.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.2926, allocations: 93.62 kB / 441.3 MB, free: 52.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001627/0.2942, allocations: 1.896 MB / 443.2 MB, free: 51.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2942, allocations: 46.11 kB / 443.3 MB, free: 51.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.2942, allocations: 0 / 443.3 MB, free: 51.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003987/0.2947, allocations: 215.2 kB / 443.5 MB, free: 51.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.2947, allocations: 59.66 kB / 443.6 MB, free: 51.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.295, allocations: 367.4 kB / 443.9 MB, free: 50.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.295, allocations: 32.42 kB / 443.9 MB, free: 50.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.2951, allocations: 230 kB / 444.2 MB, free: 50.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.2951, allocations: 40.58 kB / 444.2 MB, free: 50.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.2952, allocations: 75.19 kB / 444.3 MB, free: 50.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.897e-05/0.2953, allocations: 348.7 kB / 444.6 MB, free: 50.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.671e-05/0.2954, allocations: 63.55 kB / 444.7 MB, free: 50.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.2955, allocations: 246.7 kB / 444.9 MB, free: 50.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.2958, allocations: 343.7 kB / 445.3 MB, free: 49.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.2958, allocations: 2.938 kB / 445.3 MB, free: 49.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004216/0.2963, allocations: 348.2 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2963, allocations: 12.72 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.2963, allocations: 5.906 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.2963, allocations: 8.719 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.2965, allocations: 76.11 kB / 445.7 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.2965, allocations: 15.23 kB / 445.7 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.2967, allocations: 36.47 kB / 445.8 MB, free: 49.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.2967, allocations: 24.75 kB / 445.8 MB, free: 49.9 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.0001112/0.2968, allocations: 164 kB / 445.9 MB, free: 49.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.132e-05/0.2969, allocations: 33.06 kB / 446 MB, free: 49.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004376/0.2973, allocations: 278.7 kB / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2974, allocations: 0 / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2974, allocations: 0 / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2974, allocations: 3.188 kB / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.2978, allocations: 0.636 MB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2979, allocations: 6.828 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-05/0.2979, allocations: 15.16 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2979, allocations: 0 / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.2979, allocations: 11.66 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.2979, allocations: 0.9375 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.298, allocations: 7 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001524/0.2981, allocations: 171.9 kB / 447.1 MB, free: 49.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.469e-05/0.2982, allocations: 121.4 kB / 447.2 MB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.2983, allocations: 8.594 kB / 447.2 MB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-05/0.2983, allocations: 4.562 kB / 447.2 MB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.2984, allocations: 7.234 kB / 447.2 MB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.2984, allocations: 3.812 kB / 447.2 MB, free: 48.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.2987, allocations: 317.3 kB / 447.5 MB, free: 48.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2987, allocations: 0 / 447.5 MB, free: 48.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004863/0.2992, allocations: 167.3 kB / 447.7 MB, free: 48.86 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.0004637/0.2996, allocations: 295.4 kB / 448 MB, free: 48.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.2999, allocations: 159.9 kB / 448.1 MB, free: 48.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2999, allocations: 0 / 448.1 MB, free: 48.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.675e-05/0.2999, allocations: 36.42 kB / 448.2 MB, free: 48.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3004, allocations: 104.5 kB / 448.3 MB, free: 48.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006544/0.3011, allocations: 0.547 MB / 448.8 MB, free: 48.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.3012, allocations: 0.7797 MB / 449.6 MB, free: 47.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002733/0.3015, allocations: 107.1 kB / 449.7 MB, free: 47.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.284e-05/0.3016, allocations: 39.25 kB / 449.8 MB, free: 47.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3016, allocations: 0 / 449.8 MB, free: 47.7 MB / 366.1 MB Notification: Performance of Templates: time 0.008439/0.31, allocations: 6.16 MB / 455.9 MB, free: 47.27 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)