Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction") translateModel(Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 182.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 239.7 MB, free: 11 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.001026/0.001026, allocations: 108.4 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3659/0.3659, allocations: 36.67 MB / 376.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.89 kB / 446.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1386, allocations: 58.92 MB / 0.4935 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.2177/0.3564, allocations: 3.462 MB / 0.4969 GB, free: 40.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006235/0.3626, allocations: 6.27 MB / 0.503 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.3631, allocations: 15.03 kB / 0.503 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004691/0.3637, allocations: 137.1 kB / 0.5031 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000562/0.3642, allocations: 225.5 kB / 0.5033 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.3667, allocations: 0.8412 MB / 0.5042 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007462/0.3675, allocations: 496.6 kB / 0.5046 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.3677, allocations: 150.9 kB / 0.5048 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.368, allocations: 214.3 kB / 0.505 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.3683, allocations: 245.6 kB / 0.5052 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.458e-05/0.3684, allocations: 14.31 kB / 0.5052 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.3702, allocations: 0.5447 MB / 0.5058 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.3703, allocations: 73.92 kB / 0.5058 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.3705, allocations: 178.8 kB / 0.506 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.3722, allocations: 0.9566 MB / 0.5069 GB, free: 35.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3722, allocations: 0 / 0.5069 GB, free: 35.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.3723, allocations: 0 / 0.5069 GB, free: 35.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3723, allocations: 1.312 kB / 0.5069 GB, free: 35.51 MB / 378.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.001007/0.3733, allocations: 0.7556 MB / 0.5077 GB, free: 34.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3733, allocations: 12.66 kB / 0.5077 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004895/0.3738, allocations: 108.4 kB / 0.5078 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.3743, allocations: 360.8 kB / 0.5081 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3743, allocations: 16.94 kB / 0.5082 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.3744, allocations: 21.84 kB / 0.5082 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/0.3749, allocations: 389 kB / 0.5086 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3749, allocations: 0 / 0.5086 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.3749, allocations: 10.62 kB / 0.5086 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.375, allocations: 5.438 kB / 0.5086 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00072/0.3757, allocations: 0.5467 MB / 0.5091 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3774, allocations: 1.407 MB / 0.5105 GB, free: 33.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.3777, allocations: 171.6 kB / 0.5106 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.3779, allocations: 96.75 kB / 0.5107 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001913/0.3798, allocations: 1.915 MB / 0.5126 GB, free: 31.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.3798, allocations: 30.56 kB / 0.5126 GB, free: 31.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.432e-06/0.3798, allocations: 0 / 0.5126 GB, free: 31.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004006/0.3802, allocations: 220.3 kB / 0.5128 GB, free: 31.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.3803, allocations: 58.14 kB / 0.5129 GB, free: 31.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.3806, allocations: 371.7 kB / 0.5132 GB, free: 31.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.3806, allocations: 36.89 kB / 0.5133 GB, free: 31.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3807, allocations: 227.1 kB / 0.5135 GB, free: 30.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.3808, allocations: 45.12 kB / 0.5135 GB, free: 30.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.3809, allocations: 73.8 kB / 0.5136 GB, free: 30.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.08e-05/0.3809, allocations: 346.2 kB / 0.5139 GB, free: 30.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.381, allocations: 66.47 kB / 0.514 GB, free: 30.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3812, allocations: 238.6 kB / 0.5142 GB, free: 30.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.3815, allocations: 342.4 kB / 0.5146 GB, free: 29.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3815, allocations: 3.125 kB / 0.5146 GB, free: 29.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004154/0.3819, allocations: 345.8 kB / 0.5149 GB, free: 29.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.382, allocations: 9.094 kB / 0.5149 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.382, allocations: 6.156 kB / 0.5149 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.382, allocations: 9.625 kB / 0.5149 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.3822, allocations: 79.39 kB / 0.515 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.3822, allocations: 13.89 kB / 0.515 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.3824, allocations: 42.05 kB / 0.515 GB, free: 29.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.3824, allocations: 31.86 kB / 0.5151 GB, free: 29.69 MB / 378.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.0001091/0.3826, allocations: 161.3 kB / 0.5152 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/0.3826, allocations: 35.56 kB / 0.5153 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.3831, allocations: 281.6 kB / 0.5155 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3831, allocations: 0 / 0.5155 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3831, allocations: 0 / 0.5155 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3831, allocations: 7.156 kB / 0.5155 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005108/0.3836, allocations: 0.6367 MB / 0.5162 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3836, allocations: 0 / 0.5162 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.421e-05/0.3837, allocations: 9.812 kB / 0.5162 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3837, allocations: 3.125 kB / 0.5162 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3837, allocations: 7.5 kB / 0.5162 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3837, allocations: 3.938 kB / 0.5162 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3837, allocations: 3.281 kB / 0.5162 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003662/0.3841, allocations: 0.8152 MB / 0.517 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.796e-05/0.3842, allocations: 117.3 kB / 0.5171 GB, free: 27.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.3842, allocations: 7.219 kB / 0.5171 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.954e-05/0.3843, allocations: 3.938 kB / 0.5171 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.576e-05/0.3844, allocations: 14.66 kB / 0.5171 GB, free: 27.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3844, allocations: 3.344 kB / 0.5171 GB, free: 27.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002472/0.3846, allocations: 323.6 kB / 0.5174 GB, free: 27.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3846, allocations: 0 / 0.5174 GB, free: 27.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000652/0.3853, allocations: 166.9 kB / 0.5176 GB, free: 27.7 MB / 378.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.0005565/0.3859, allocations: 300 kB / 0.5179 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002586/0.3861, allocations: 164.1 kB / 0.518 GB, free: 27.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3861, allocations: 0 / 0.518 GB, free: 27.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.727e-05/0.3862, allocations: 27 kB / 0.5181 GB, free: 27.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.3867, allocations: 94.81 kB / 0.5182 GB, free: 27.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007589/0.3875, allocations: 0.7411 MB / 0.5189 GB, free: 26.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.3877, allocations: 0.779 MB / 0.5196 GB, free: 26.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.388, allocations: 95.2 kB / 0.5197 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.146e-05/0.3881, allocations: 47.17 kB / 0.5198 GB, free: 26.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3881, allocations: 7.938 kB / 0.5198 GB, free: 26.16 MB / 378.7 MB Notification: Performance of Templates: time 0.009145/0.3972, allocations: 6.218 MB / 0.5259 GB, free: 25.62 MB / 378.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)