Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 183 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.341/1.341, allocations: 222.9 MB / 239.6 MB, free: 11.01 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.001014/0.001014, allocations: 101.9 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4049/0.4049, allocations: 36.68 MB / 376.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.118, allocations: 58.92 MB / 0.4935 GB, free: 0.8438 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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(Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.258/0.376, allocations: 20.82 MB / 0.5138 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.009685/0.3857, allocations: 9.166 MB / 0.5228 GB, free: 29.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007274/0.3864, allocations: 23.19 kB / 0.5228 GB, free: 29.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006596/0.3871, allocations: 196.6 kB / 0.523 GB, free: 29.34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008797/0.388, allocations: 314.4 kB / 0.5233 GB, free: 29.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003729/0.3917, allocations: 1.243 MB / 0.5245 GB, free: 28.42 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008219/0.3926, allocations: 0.6736 MB / 0.5252 GB, free: 28.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.3928, allocations: 206 kB / 0.5253 GB, free: 28.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.3931, allocations: 299.8 kB / 0.5256 GB, free: 27.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.3935, allocations: 339.9 kB / 0.526 GB, free: 27.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.3935, allocations: 19.25 kB / 0.526 GB, free: 27.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002293/0.3958, allocations: 0.8085 MB / 0.5268 GB, free: 27.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.396, allocations: 116 kB / 0.5269 GB, free: 27.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.3963, allocations: 250.8 kB / 0.5271 GB, free: 27.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.3986, allocations: 1.407 MB / 0.5285 GB, free: 26.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3986, allocations: 0 / 0.5285 GB, free: 26.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3986, allocations: 0.7031 kB / 0.5285 GB, free: 26.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3986, allocations: 0 / 0.5285 GB, free: 26.88 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00133/0.3999, allocations: 0.93 MB / 0.5294 GB, free: 26.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4, allocations: 13.84 kB / 0.5294 GB, free: 26.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007893/0.4008, allocations: 159.6 kB / 0.5296 GB, free: 26.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.4014, allocations: 442.3 kB / 0.53 GB, free: 25.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.4014, allocations: 21.41 kB / 0.53 GB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-05/0.4015, allocations: 31.59 kB / 0.53 GB, free: 25.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007451/0.4023, allocations: 0.5311 MB / 0.5306 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.4023, allocations: 9.359 kB / 0.5306 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.643e-05/0.4023, allocations: 11 kB / 0.5306 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.4024, allocations: 7.375 kB / 0.5306 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.4034, allocations: 0.8089 MB / 0.5314 GB, free: 25.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.4056, allocations: 1.885 MB / 0.5332 GB, free: 24.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004068/0.406, allocations: 226.5 kB / 0.5334 GB, free: 23.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.4063, allocations: 133.3 kB / 0.5336 GB, free: 23.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002916/0.4092, allocations: 2.718 MB / 0.5362 GB, free: 21.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.4092, allocations: 35.16 kB / 0.5362 GB, free: 21.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.784e-06/0.4092, allocations: 0 / 0.5362 GB, free: 21.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005658/0.4098, allocations: 294.6 kB / 0.5365 GB, free: 21.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.4098, allocations: 52.72 kB / 0.5366 GB, free: 21.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004535/0.4103, allocations: 482.2 kB / 0.537 GB, free: 21.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.4103, allocations: 29.7 kB / 0.5371 GB, free: 21.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.4105, allocations: 297.5 kB / 0.5373 GB, free: 20.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.4105, allocations: 66.39 kB / 0.5374 GB, free: 20.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.4107, allocations: 92.58 kB / 0.5375 GB, free: 20.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.049e-05/0.4108, allocations: 362.2 kB / 0.5378 GB, free: 20.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.4109, allocations: 88.61 kB / 0.5379 GB, free: 20.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.4112, allocations: 356 kB / 0.5383 GB, free: 20.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.4117, allocations: 0.4963 MB / 0.5388 GB, free: 19.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.4117, allocations: 3.125 kB / 0.5388 GB, free: 19.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007389/0.4124, allocations: 484.8 kB / 0.5392 GB, free: 19.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4125, allocations: 13.31 kB / 0.5392 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4125, allocations: 9.156 kB / 0.5392 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/0.4125, allocations: 12.25 kB / 0.5393 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.4128, allocations: 112.3 kB / 0.5394 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/0.4129, allocations: 18.83 kB / 0.5394 GB, free: 19.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.4132, allocations: 59.56 kB / 0.5394 GB, free: 19.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.529e-05/0.4132, allocations: 37.88 kB / 0.5395 GB, free: 19.3 MB / 378.7 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.0001695/0.4134, allocations: 191.6 kB / 0.5397 GB, free: 19.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.85e-05/0.4135, allocations: 48.72 kB / 0.5397 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007413/0.4143, allocations: 391.6 kB / 0.5401 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4143, allocations: 1.156 kB / 0.5401 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.4143, allocations: 3.562 kB / 0.5401 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.4143, allocations: 0 / 0.5401 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.4151, allocations: 0.7184 MB / 0.5408 GB, free: 18.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4151, allocations: 6.875 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.764e-05/0.4152, allocations: 16.56 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4152, allocations: 1.375 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.4152, allocations: 6.906 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.4152, allocations: 1.406 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4152, allocations: 1.469 kB / 0.5408 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005224/0.4158, allocations: 0.869 MB / 0.5417 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.4159, allocations: 136.2 kB / 0.5418 GB, free: 17.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.416, allocations: 7.156 kB / 0.5418 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.4161, allocations: 2.031 kB / 0.5418 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.4161, allocations: 14.41 kB / 0.5418 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.4161, allocations: 3.625 kB / 0.5418 GB, free: 17.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004828/0.4166, allocations: 414.3 kB / 0.5422 GB, free: 17.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4166, allocations: 0 / 0.5422 GB, free: 17.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009518/0.4176, allocations: 248.2 kB / 0.5424 GB, free: 17.12 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.0007576/0.4184, allocations: 408.3 kB / 0.5428 GB, free: 16.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004523/0.4188, allocations: 225.3 kB / 0.5431 GB, free: 16.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4188, allocations: 0 / 0.5431 GB, free: 16.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.623e-05/0.4189, allocations: 36.17 kB / 0.5431 GB, free: 16.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.4195, allocations: 109 kB / 0.5432 GB, free: 16.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.4206, allocations: 0.9084 MB / 0.5441 GB, free: 16.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.4209, allocations: 0.8074 MB / 0.5449 GB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.4213, allocations: 141.6 kB / 0.545 GB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.4215, allocations: 62.41 kB / 0.5451 GB, free: 15.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4215, allocations: 3.938 kB / 0.5451 GB, free: 15.38 MB / 378.7 MB Notification: Performance of Templates: time 0.01357/0.435, allocations: 8.619 MB / 0.5535 GB, free: 11.86 MB / 378.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)